summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-08 12:54:52 -0500
committerGitHub <noreply@github.com>2017-11-08 12:54:52 -0500
commitd4aaa6cda39b338e77d861eb321dc1a677287b75 (patch)
treedd343bb6533d303792a68c8a0d10a884ec09467c /source/slang/check.cpp
parente1710807292544775dc6a0eb338af081fb94493e (diff)
parentf408165a88e12467c4993199a0e515a8808083c3 (diff)
Merge pull request #268 from csyonghe/work1
Cleanup of "support generic interface method".
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>())