Parse untyped object type members separated by ','

Previously if the first member was untyped and the separator was ',',
then parsing would fail.
This commit is contained in:
Nathan Shively-Sanders
2016-08-26 13:25:19 -07:00
parent b0f7f2f99c
commit 0a985ee287
5 changed files with 46 additions and 0 deletions

View File

@@ -2339,6 +2339,7 @@ namespace ts {
token() === SyntaxKind.LessThanToken ||
token() === SyntaxKind.QuestionToken ||
token() === SyntaxKind.ColonToken ||
token() === SyntaxKind.CommaToken ||
canParseSemicolon();
}
return false;