Skip to content

Commit f0e244c

Browse files
committed
[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.
1 parent c999f62 commit f0e244c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ Type TypeChecker::applyUnboundGenericArguments(
612612
LookUpConformance(*this, dc),
613613
SubstFlags::UseErrorType);
614614

615-
if (isa<NominalTypeDecl>(decl)) {
615+
if (isa<NominalTypeDecl>(decl) && resultType) {
616616
if (useObjectiveCBridgeableConformancesOfArgs(
617617
dc, resultType->castTo<BoundGenericType>(),
618618
unsatisfiedDependency))

0 commit comments

Comments
 (0)