avoid emitting "no member" errors when use import fails

closes #192
This commit is contained in:
Andrew Kelley 2016-09-19 21:23:36 -04:00
parent e397ea43c0
commit 158225a203

View File

@ -6977,6 +6977,7 @@ static void add_symbols_from_import(CodeGen *g, AstNode *src_use_node, AstNode *
Expr *expr = get_resolved_expr(use_target_node); Expr *expr = get_resolved_expr(use_target_node);
if (expr->type_entry->id == TypeTableEntryIdInvalid) { if (expr->type_entry->id == TypeTableEntryIdInvalid) {
tld->import->any_imports_failed = true;
return; return;
} }