Allow aliasing foreign import name

This commit is contained in:
gingerBill
2023-04-20 11:20:15 +01:00
parent 2d699fd13b
commit 6726df4d58

View File

@@ -1631,7 +1631,9 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
}
return e;
case Entity_LibraryName:
error(n, "Use of library '%.*s' not in foreign block", LIT(name));
if (!allow_import_name) {
error(n, "Use of library '%.*s' not in foreign block", LIT(name));
}
return e;
case Entity_Label: