mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 18:32:12 +00:00
Allow aliasing foreign import name
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user