Disallow import declarations within a when statement

This commit is contained in:
gingerBill
2023-08-04 15:45:25 +01:00
parent 4a71603a77
commit 3323d5c76c
2 changed files with 8 additions and 0 deletions

View File

@@ -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;