Skip to content

Commit 0e156af

Browse files
committed
AST: The conforming type of a normal conformance should be the self, not declared, interface type
Builtin.TheTupleType's self interface type is (T...), and the declared interface type is the non-substitutable Builtin.TheTupleType.
1 parent 556d479 commit 0e156af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ConformanceLookupTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ ConformanceLookupTable::getConformance(NominalTypeDecl *nominal,
875875
ctx.getInheritedConformance(type, inheritedConformance.getConcrete());
876876
} else {
877877
// Create or find the normal conformance.
878-
Type conformingType = conformingDC->getDeclaredInterfaceType();
878+
Type conformingType = conformingDC->getSelfInterfaceType();
879879
SourceLoc conformanceLoc
880880
= conformingNominal == conformingDC
881881
? conformingNominal->getLoc()

0 commit comments

Comments
 (0)