Fix 'static readonly' not being recognized as constant anymore, see #44

This commit is contained in:
dcodeIO
2018-03-19 19:36:39 +01:00
parent 5323e64af9
commit fea8e65a41
22 changed files with 2391 additions and 2368 deletions

View File

@ -1032,6 +1032,8 @@ export class Parser extends DiagnosticEmitter {
if (tn.skip(Token.COLON)) {
type = this.parseType(tn);
if (!type) return null;
} else {
type = Node.createOmittedType(tn.range(tn.pos));
}
let initializer: Expression | null = null;
if (tn.skip(Token.EQUALS)) {