fix no error emitted for redeclaring global var

closes #81
This commit is contained in:
Andrew Kelley
2016-01-23 00:07:08 -07:00
parent bfceb18631
commit 1543043bf5
4 changed files with 103 additions and 41 deletions

View File

@@ -26,6 +26,7 @@ CodeGen *codegen_create(Buf *root_source_dir) {
g->unresolved_top_level_decls.init(32);
g->build_type = CodeGenBuildTypeDebug;
g->root_source_dir = root_source_dir;
g->next_error_index = 1;
return g;
}