summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 2c6899269..1f0e1a2dc 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -1054,6 +1054,14 @@ namespace Slang
{
return overloadedExpr2->base;
}
+ else if (auto genApp = as<GenericAppExpr>(expr))
+ {
+ return GetBaseExpr(genApp->functionExpr);
+ }
+ else if (auto partiallyApplied = as<PartiallyAppliedGenericExpr>(expr))
+ {
+ return GetBaseExpr(partiallyApplied->originalExpr);
+ }
return nullptr;
}