aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-08-04 15:45:25 +0100
committergingerBill <bill@gingerbill.org>2023-08-04 15:45:25 +0100
commit3323d5c76cd5eb5362d6df5ae00aef1c4d567fe3 (patch)
treeea8cd5504a81b9f1ed383fa04eed47546808472a /src/parser.hpp
parent4a71603a777783a2ee4cd78368f1b1fbe76d7773 (diff)
Disallow `import` declarations within a `when` statement
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index fa169d3ad..109068da7 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -116,6 +116,7 @@ struct AstFile {
bool allow_in_expr; // NOTE(bill): in expression are only allowed in certain cases
bool in_foreign_block;
bool allow_type;
+ bool in_when_statement;
isize total_file_decl_count;
isize delayed_decl_count;