summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index e100cbd1d..1b17ec49f 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -6606,6 +6606,10 @@ namespace Slang
{
if (auto typeParamRef = memberRef.As<GenericTypeParamDecl>())
{
+ if (aa >= context.argCount)
+ {
+ return false;
+ }
auto arg = context.getArg(aa++);
TypeExp typeExp;