Fix bug where you could have same named decls

This commit is contained in:
Krzosa Karol
2022-06-11 10:01:31 +02:00
parent 3b4e14a089
commit ac371b7203
2 changed files with 1 additions and 2 deletions

View File

@@ -456,7 +456,7 @@ compile_files(Array<String> filename){
decl->state = DECL_RESOLVED;
}
package->decls.add(decl);
insert_into_scope(package, decl);
}
pctx->currently_parsed_scope = 0;