[Type checker] When type resolution fails, don't check bridgeable conformances.

Should address rdar://problem/34760012, although there isn't enough detail
there to be certain.
This commit is contained in:
Doug Gregor
2017-10-04 12:36:27 -07:00
parent c999f621a7
commit f0e244ccdd

View File

@@ -612,7 +612,7 @@ Type TypeChecker::applyUnboundGenericArguments(
LookUpConformance(*this, dc), LookUpConformance(*this, dc),
SubstFlags::UseErrorType); SubstFlags::UseErrorType);
if (isa<NominalTypeDecl>(decl)) { if (isa<NominalTypeDecl>(decl) && resultType) {
if (useObjectiveCBridgeableConformancesOfArgs( if (useObjectiveCBridgeableConformancesOfArgs(
dc, resultType->castTo<BoundGenericType>(), dc, resultType->castTo<BoundGenericType>(),
unsatisfiedDependency)) unsatisfiedDependency))