diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-23 18:03:29 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-23 18:03:29 +0100 |
| commit | 822bb51b55bc62f9d406db80e9d5a71d3a300a19 (patch) | |
| tree | 72f50fc5005ab77c82636a73c8f09e9a328ec3c2 /src/parser.c | |
| parent | c2fa79012ea01ad508083f13f86d2b6c8f5045da (diff) | |
Swap memory layout of `any`
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.c b/src/parser.c index 687902395..277d4069c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -3312,6 +3312,7 @@ AstNode *parse_stmt(AstFile *f) { expect_semicolon(f, decl); if (decl->kind == AstNode_ValueDecl) { + #if 1 if (!decl->ValueDecl.is_var) { syntax_error(token, "`using` may not be applied to constant declarations"); return decl; @@ -3321,6 +3322,9 @@ AstNode *parse_stmt(AstFile *f) { } else { decl->ValueDecl.flags |= VarDeclFlag_using; } + #else + decl->ValueDecl.flags |= VarDeclFlag_using; + #endif return decl; } |