aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 47d550070..62a16cd08 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -1389,7 +1389,7 @@ void add_type_info_type(Checker *c, Type *t) {
}
}
-void check_procedure_later(Checker *c, ProcedureInfo const &info) {
+void check_procedure_later(Checker *c, ProcedureInfo info) {
GB_ASSERT(info.decl != nullptr);
array_add(&c->procs, info);
}
@@ -3064,9 +3064,12 @@ void check_import_entities(Checker *c) {
};
if (path.count == 1) {
+ // TODO(bill): Should this be allowed or disabled?
+ #if 0
ImportPathItem item = path[0];
String filename = fn(item);
error(item.decl, "Self importation of '%.*s'", LIT(filename));
+ #endif
} else if (path.count > 0) {
ImportPathItem item = path[path.count-1];
String filename = fn(item);