From 8daafcc2e4bf7b2dfb66d7a3b7ac60c86b2d926c Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 9 Jan 2018 10:50:44 -0800 Subject: bruteforce implementation of witness table resolution for associated (#358) --- source/slang/lookup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/lookup.cpp') 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() || declRef.As()) { - for (auto constraintDeclRef : getMembersOfType(declRef.As())) + for (auto constraintDeclRef : getMembersOfType(declRef.As())) { // The super-type in the constraint (e.g., `Foo` in `T : Foo`) // will tell us a type we should use for lookup. -- cgit v1.2.3