From 4671207c61c868b4ed1297c3dca8d7a8bd0ba820 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 23 May 2020 13:39:18 +0100 Subject: [PATCH] Make the `using import` deprecation warning an error --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.cpp b/src/parser.cpp index 6a6a4ecd0..3d2041183 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3895,7 +3895,7 @@ Ast *parse_import_decl(AstFile *f, ImportDeclKind kind) { } if (is_using) { - syntax_warning(import_name, "'using import' is deprecated, please use the import name explicitly"); + syntax_error(import_name, "'using import' is not allowed, please use the import name explicitly"); } expect_semicolon(f, s);