aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-12-17 14:53:40 +0000
committergingerBill <bill@gingerbill.org>2017-12-17 14:53:40 +0000
commit30530d058ca22eea3dcb0401a6bd6d288deb3ce0 (patch)
tree47193c49795d4b42cf096938df6fc08f75bd0ea8 /src/checker.cpp
parent436928d06a8bf38b5ee4b188169e02a609d8d955 (diff)
Remove `struct #ordered`
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);