Allow type witness resolution for unqualified lookups.

Fixes rdar://problem/21512599.

Swift SVN r29894
This commit is contained in:
Doug Gregor
2015-07-02 18:29:13 +00:00
parent e692c87bbf
commit d44651f366
6 changed files with 60 additions and 39 deletions

View File

@@ -2202,6 +2202,7 @@ namespace {
// Resolve the reference to this type declaration in our
// current context.
auto type = cs.getTypeChecker().resolveTypeInContext(typeDecl, dc,
TR_InExpression,
isSpecialized);
if (!type)
return nullptr;