summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-04 20:07:47 -0400
committerYong He <yonghe@outlook.com>2017-11-04 20:07:47 -0400
commit6e4ba9bd552923b08cd56b4542b2f29e8df8ca0c (patch)
tree4054db25f0a297bc7c22c41661e73e13b87cab08 /source/slang/check.cpp
parent87c15d35085b4bbec9ced8e170d027d58de4e6ef (diff)
naming cleanup
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 58c1762bb..bc3823292 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -1638,10 +1638,10 @@ namespace Slang
{
// this is a sub type (e.g. nested struct declaration) in an aggregate type
// check if this sub type declaration satisfies the constraints defined by the associated type
- if (auto requiredTypeDecl = requiredMemberDeclRef.As<AssocTypeDecl>())
+ if (auto requiredTypeDeclRef = requiredMemberDeclRef.As<AssocTypeDecl>())
{
bool conformance = true;
- for (auto & inheritanceDecl : requiredTypeDecl.getDecl()->getMembersOfType<InheritanceDecl>())
+ for (auto & inheritanceDecl : requiredTypeDeclRef.getDecl()->getMembersOfType<InheritanceDecl>())
{
conformance = conformance && checkConformance(subStructTypeDecl, inheritanceDecl.Ptr());
}