summaryrefslogtreecommitdiff
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, 2 insertions, 2 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index d01c913b1..58c1762bb 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1661,7 +1661,7 @@ namespace Slang
if (!declRefType)
return false;
- auto subStructTypeDecl = declRefType->declRef.getDecl()->As<AggTypeDecl>();
+ auto structTypeDecl = declRefType->declRef.getDecl()->As<AggTypeDecl>();
//TODO: What do we do if type is a generic specialization?
// i.e. if the struct defines typedef Generic<float> T;
// how to check if T satisfies the associatedtype constraints?
@@ -1669,7 +1669,7 @@ namespace Slang
bool conformance = true;
for (auto & inheritanceDecl : constraintList)
{
- conformance = conformance && checkConformance(subStructTypeDecl, inheritanceDecl.Ptr());
+ conformance = conformance && checkConformance(structTypeDecl, inheritanceDecl.Ptr());
}
return conformance;
}