Skip to content

Commit de0fd63

Browse files
committed
AST: Teach qualified lookup to find members of tuples
1 parent a2fad18 commit de0fd63

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/AST/NameLookup.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,6 +1894,11 @@ void namelookup::extractDirectlyReferencedNominalTypes(
18941894
return;
18951895
}
18961896

1897+
if (type->is<TupleType>()) {
1898+
decls.push_back(type->getASTContext().getBuiltinTupleDecl());
1899+
return;
1900+
}
1901+
18971902
llvm_unreachable("Not a type containing nominal types?");
18981903
}
18991904

0 commit comments

Comments
 (0)