summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-08 12:55:08 -0500
committerGitHub <noreply@github.com>2017-11-08 12:55:08 -0500
commitda58c702d8be302f8d4ccc9ba27252759398d4d6 (patch)
treecffe8ed0c6d2a884c5e7ff00035ae956ce917e56 /source/slang/check.cpp
parent97569db1f4caac84ad03b38647c12fc97e9864c1 (diff)
parentd4aaa6cda39b338e77d861eb321dc1a677287b75 (diff)
Merge branch 'master' into work
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index 320b22bdb..233a82eef 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1609,6 +1609,15 @@ namespace Slang
else
return false;
}
+ else if (auto genValMbr = genMbr.As<GenericValueParamDecl>())
+ {
+ if (auto requiredGenValMbr = requiredGenMbr.As<GenericValueParamDecl>())
+ {
+ return genValMbr->type->Equals(requiredGenValMbr->type);
+ }
+ else
+ return false;
+ }
else if (auto genTypeConstraintMbr = genMbr.As<GenericTypeConstraintDecl>())
{
if (auto requiredTypeConstraintMbr = requiredGenMbr.As<GenericTypeConstraintDecl>())