Skip to content

Commit 4433fe3

Browse files
committed
AST: Handle new abstract conformances in ProtocolConformanceRef::mapConformanceOutOfContext()
1 parent ce3f6e0 commit 4433fe3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ProtocolConformanceRef.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ ProtocolConformanceRef ProtocolConformanceRef::mapConformanceOutOfContext() cons
139139
MakeAbstractConformanceForGenericType(),
140140
SubstFlags::PreservePackExpansionLevel |
141141
SubstFlags::SubstitutePrimaryArchetypes);
142+
} else if (isAbstract()) {
143+
auto *abstract = getAbstract();
144+
return forAbstract(abstract->getType()->mapTypeOutOfContext(),
145+
abstract->getProtocol());
142146
}
143147

144148
return *this;

0 commit comments

Comments
 (0)