aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-04 13:58:36 +0100
committergingerBill <bill@gingerbill.org>2024-07-04 13:58:36 +0100
commitbf711b282d49ce29c60fc31106a0dd640429e0b8 (patch)
tree1ebcffe492999dcc44f999dc66661450c497b7b1 /src/check_expr.cpp
parent87bccc8f3f1130814791ce824c60e2e8e3c08192 (diff)
Remove `when` check in `check_entity_from_ident_or_selector`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index af5a9c521..20b83c06d 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -4971,7 +4971,7 @@ gb_internal Entity *check_entity_from_ident_or_selector(CheckerContext *c, Ast *
if (node == nullptr) {
return nullptr;
}
- if (node->kind == Ast_TernaryWhenExpr) {
+ /*if (node->kind == Ast_TernaryWhenExpr) {
ast_node(we, TernaryWhenExpr, node);
if (we->cond == nullptr) {
return nullptr;
@@ -4988,7 +4988,7 @@ gb_internal Entity *check_entity_from_ident_or_selector(CheckerContext *c, Ast *
Entity *e = check_entity_from_ident_or_selector(c, we->y, ident_only);
return e;
}
- } else if (node->kind == Ast_Ident) {
+ } else */if (node->kind == Ast_Ident) {
String name = node->Ident.token.string;
return scope_lookup(c->scope, name);
} else if (!ident_only) if (node->kind == Ast_SelectorExpr) {