aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-04-23 18:03:29 +0100
committerGinger Bill <bill@gingerbill.org>2017-04-23 18:03:29 +0100
commit822bb51b55bc62f9d406db80e9d5a71d3a300a19 (patch)
tree72f50fc5005ab77c82636a73c8f09e9a328ec3c2 /src/parser.c
parentc2fa79012ea01ad508083f13f86d2b6c8f5045da (diff)
Swap memory layout of `any`
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c4
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;
}