summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-01-17 03:06:00 +0200
committerGitHub <noreply@github.com>2025-01-17 01:06:00 +0000
commitd3ad6bb4997d3b7ba2dc9653a2d5f7dc965b150f (patch)
tree4726f721cec95ec5ea2ec8408a081ca93338e923 /source/slang/slang-check-expr.cpp
parente771f1945ed692168a2634d66a0907acc9c68858 (diff)
Fix cyclic lookups with UnscopedEnums (#6110)
* Fix cyclic lookups with UnscopedEnums * Add test with multiple unscoped enums with explicit types --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index ce6206973..135632ba8 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -3092,7 +3092,8 @@ Expr* SemanticsExprVisitor::visitVarExpr(VarExpr* expr)
expr->scope,
LookupMask::Default,
false,
- getDeclToExcludeFromLookup());
+ getDeclToExcludeFromLookup(),
+ getExcludeTransparentMembersFromLookup());
bool diagnosed = false;
lookupResult = filterLookupResultByVisibilityAndDiagnose(lookupResult, expr->loc, diagnosed);