Fix #strict regression, adding Any and Type_Info

This commit is contained in:
Krzosa Karol
2022-06-18 15:24:54 +02:00
parent 8ead876d90
commit 0ed4f62557
5 changed files with 62 additions and 41 deletions

View File

@@ -734,10 +734,10 @@ parse_decl(B32 is_global){
}
}
Ast_Flag flags = 0;
Token *tname = token_get();
if(token_match(TK_Identifier, TK_DoubleColon)){
Ast_Flag flags = 0;
if(token_match_pound(intern_foreign)){
set_flag(flags, AST_FOREIGN);
} else if(token_match_pound(intern_strict)){
@@ -794,6 +794,7 @@ parse_decl(B32 is_global){
}
if(result){
set_flag(result->flags, flags);
result->name = tname->intern_val;
}