aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index fa321937e..fbbb9e1cb 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -3771,6 +3771,11 @@ Ast *parse_import_decl(AstFile *f, ImportDeclKind kind) {
s = ast_import_decl(f, token, is_using, file_path, import_name, docs, f->line_comment);
array_add(&f->imports, s);
}
+
+ if (is_using) {
+ syntax_warning(import_name, "'using import' is deprecated, please use the import name explicitly");
+ }
+
expect_semicolon(f, s);
return s;
}