mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Allow aliasing foreign import name
This commit is contained in:
+3
-1
@@ -1631,7 +1631,9 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
|
|||||||
}
|
}
|
||||||
return e;
|
return e;
|
||||||
case Entity_LibraryName:
|
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;
|
return e;
|
||||||
|
|
||||||
case Entity_Label:
|
case Entity_Label:
|
||||||
|
|||||||
Reference in New Issue
Block a user