mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 22:33:36 +00:00
Fix #6130
This commit is contained in:
@@ -5071,6 +5071,10 @@ gb_internal Ast *parse_import_decl(AstFile *f, ImportDeclKind kind) {
|
||||
syntax_error(import_name, "'using import' is not allowed, please use the import name explicitly");
|
||||
}
|
||||
|
||||
if (file_path.string == "\".\"") {
|
||||
syntax_error(import_name, "Cannot cyclicly import packages");
|
||||
}
|
||||
|
||||
expect_semicolon(f);
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user