summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-constraint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-constraint.cpp')
-rw-r--r--source/slang/slang-check-constraint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-constraint.cpp b/source/slang/slang-check-constraint.cpp
index 6259e2fb8..3020554c8 100644
--- a/source/slang/slang-check-constraint.cpp
+++ b/source/slang/slang-check-constraint.cpp
@@ -541,7 +541,7 @@ DeclRef<Decl> SemanticsVisitor::trySolveConstraintSystem(
// should have been filled with the resolved types and values for the
// generic parameters. We can now verify if they are complete and consolidate
// them into final argument list.
- for (auto member : genericDeclRef.getDecl()->members)
+ for (auto member : genericDeclRef.getDecl()->getDirectMemberDecls())
{
if (auto typeParam = as<GenericTypeParamDeclBase>(member))
{