summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
authorJulius Ikkala <julius.ikkala@gmail.com>2025-05-25 23:44:26 +0300
committerGitHub <noreply@github.com>2025-05-25 20:44:26 +0000
commit8ecb2c70437292ef6fa34f7122df44067de6a4de (patch)
tree56c9cc959ab5c77ca6215f5d4c45e4f5975d566d /source/slang/slang-parser.cpp
parent0476b57faad96bee61f59f27ddd48c6cb067cfa2 (diff)
Fix #7232 (#7236)
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index f968f9fe1..565cb2e5f 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -2426,8 +2426,8 @@ static Expr* tryParseGenericApp(Parser* parser, Expr* base)
for (auto candidate : overloadedExpr->lookupResult2)
{
if (candidate.declRef.is<GenericDecl>() ||
- declRefExpr->declRef.is<FunctionDeclBase>() ||
- declRefExpr->declRef.is<AggTypeDeclBase>())
+ candidate.declRef.is<FunctionDeclBase>() ||
+ candidate.declRef.is<AggTypeDeclBase>())
{
baseKind = BaseGenericKind::Generic;
break;