summaryrefslogtreecommitdiffstats
path: root/source/slang/lookup.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-09 10:50:44 -0800
committerTim Foley <tfoleyNV@users.noreply.github.com>2018-01-09 10:50:44 -0800
commit8daafcc2e4bf7b2dfb66d7a3b7ac60c86b2d926c (patch)
treeb7fac301e3c4d1b006af70584feeb45af191aab6 /source/slang/lookup.cpp
parent3d435f7321c3f9241d33a0f7521573f21b548186 (diff)
bruteforce implementation of witness table resolution for associated (#358)
Diffstat (limited to 'source/slang/lookup.cpp')
-rw-r--r--source/slang/lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/lookup.cpp b/source/slang/lookup.cpp
index 86bef3f4d..901661667 100644
--- a/source/slang/lookup.cpp
+++ b/source/slang/lookup.cpp
@@ -412,7 +412,7 @@ void lookUpMemberImpl(
auto declRef = declRefType->declRef;
if (declRef.As<AssocTypeDecl>() || declRef.As<GlobalGenericParamDecl>())
{
- for (auto constraintDeclRef : getMembersOfType<GenericTypeConstraintDecl>(declRef.As<ContainerDecl>()))
+ for (auto constraintDeclRef : getMembersOfType<TypeConstraintDecl>(declRef.As<ContainerDecl>()))
{
// The super-type in the constraint (e.g., `Foo` in `T : Foo`)
// will tell us a type we should use for lookup.