mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 08:21:44 +00:00
Fix 'static readonly' not being recognized as constant anymore, see #44
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user