mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-28 05:44:57 +00:00
Add anonymous using import names with an underscore (#127)
`using import _ "foo.odin"`
This commit is contained in:
@@ -4349,7 +4349,7 @@ AstNode *parse_import_decl(AstFile *f, bool is_using) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (is_blank_ident(import_name)) {
|
||||
if (!is_using && is_blank_ident(import_name)) {
|
||||
syntax_error(import_name, "Illegal import name: `_`");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user