Check for _ for import names too

This commit is contained in:
gingerBill
2019-01-13 17:44:38 +00:00
parent 3363e2c199
commit 493f11521d
+1 -1
View File
@@ -2888,7 +2888,7 @@ void check_add_import_decl(CheckerContext *ctx, Ast *decl) {
String import_name = path_to_entity_name(id->import_name.string, id->fullpath, false);
// String import_name = id->import_name.string;
if (import_name.len == 0) {
if (import_name.len == 0 || import_name == "_") {
import_name = scope->pkg->name;
}
if (is_blank_ident(import_name)) {