mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -612,7 +612,7 @@ Type TypeChecker::applyUnboundGenericArguments(
|
||||
LookUpConformance(*this, dc),
|
||||
SubstFlags::UseErrorType);
|
||||
|
||||
if (isa<NominalTypeDecl>(decl)) {
|
||||
if (isa<NominalTypeDecl>(decl) && resultType) {
|
||||
if (useObjectiveCBridgeableConformancesOfArgs(
|
||||
dc, resultType->castTo<BoundGenericType>(),
|
||||
unsatisfiedDependency))
|
||||
|
||||
Reference in New Issue
Block a user