Skip to content

Commit 6b7732f

Browse files
authored
Merge pull request #12273 from DougGregor/resolve-type-null-check
[Type checker] When type resolution fails, don't check bridgeable conformances
2 parents aab5f7a + f0e244c commit 6b7732f

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)