Fix #209 #assert bug

This commit is contained in:
gingerBill
2018-04-10 20:18:16 +01:00
parent 30f5a3bb93
commit b83c3f265b
2 changed files with 12 additions and 7 deletions

View File

@@ -1012,8 +1012,10 @@ Entity *check_ident(Checker *c, Operand *o, AstNode *n, Type *named_type, Type *
if (e->type == nullptr) {
if (e->state == EntityState_Unresolved) {
return nullptr;
}
compiler_error("How did this happen? type: %s; identifier: %.*s\n", type_to_string(e->type), LIT(name));
// return nullptr;
}
e->flags |= EntityFlag_Used;