An asterisk is not a legal start of an enum member.
This commit is contained in:
parent
5309171798
commit
ed2cd997bc
|
@ -1262,6 +1262,7 @@ module ts {
|
|||
case ParsingContext.ClassMembers:
|
||||
return lookAhead(isClassMemberStart);
|
||||
case ParsingContext.EnumMembers:
|
||||
return isPropertyName();
|
||||
case ParsingContext.ObjectLiteralMembers:
|
||||
return token === SyntaxKind.AsteriskToken || isPropertyName();
|
||||
case ParsingContext.BaseTypeReferences:
|
||||
|
|
Loading…
Reference in a new issue