diff options
| author | gingerBill <bill@gingerbill.org> | 2019-12-21 12:11:16 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-12-21 12:11:16 +0000 |
| commit | d462dbb5be3967e44bf6301b3d930e095bd67b9e (patch) | |
| tree | 9a1785e70efe2cdb1a2fe689d461c8b1d3cc78ab /src | |
| parent | 19c32ecb811f88ce44c7b91e32497cd0aaf69275 (diff) | |
Deprecate `using import`
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.cpp | 5 |
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; } |