aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-23 20:40:48 +0000
committergingerBill <bill@gingerbill.org>2021-02-23 20:40:48 +0000
commit8f9111e5526d7bf4c58cfd127d45b1d229a3d9d3 (patch)
treeec89180590e1505b2d5e59a0481be5dfe5d37058 /src/check_expr.cpp
parent731e6ca3a6eda8039b36a81b5ac3683b89a487d4 (diff)
Build tag to make all declarations within a file private to the package `//+private`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index e77efc023..656ac8838 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3503,9 +3503,10 @@ Entity *check_selector(CheckerContext *c, Operand *operand, Ast *node, Type *typ
gbString sel_str = expr_to_string(selector);
error(op_expr, "'%s' is not exported by '%.*s'", sel_str, LIT(import_name));
gb_string_free(sel_str);
- operand->mode = Addressing_Invalid;
- operand->expr = node;
- return nullptr;
+ // NOTE(bill): make the state valid still, even if it's "invalid"
+ // operand->mode = Addressing_Invalid;
+ // operand->expr = node;
+ // return nullptr;
}
if (entity->kind == Entity_ProcGroup) {