aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
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) {