Deprecate using import

This commit is contained in:
gingerBill committed 2019-12-21 12:11:16 +00:00
1 parent 19c32ecb81
commit d462dbb5be
2 files changed
+22 -17

No files matched your search

+5
View File
@@ -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;
}