File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1668,11 +1668,14 @@ void Remangler::mangleKeyPathSetterThunkHelper(Node *node) {
1668
1668
}
1669
1669
1670
1670
void Remangler::mangleProtocolListWithClass (Node *node) {
1671
- Out << " <procotol-list-with-class>" ;
1671
+ Out << " Xc" ;
1672
+ mangleChildNode (node, 1 );
1673
+ mangleProtocolListWithoutPrefix (node->getChild (0 ));
1672
1674
}
1673
1675
1674
1676
void Remangler::mangleProtocolListWithAnyObject (Node *node) {
1675
- Out << " <procotol-list-with-any-object>" ;
1677
+ Out << " Xl" ;
1678
+ mangleProtocolListWithoutPrefix (node->getChild (0 ));
1676
1679
}
1677
1680
1678
1681
void Remangler::mangleVTableThunk (Node *node) {
Original file line number Diff line number Diff line change @@ -374,6 +374,11 @@ Runtime.test("Generic class ObjC runtime names") {
374
374
expectEqual ( " _TtGC1a12GenericClassPSo9NSCopyingS_9ProtocolAS_9ProtocolB__ " ,
375
375
NSStringFromClass ( GenericClass< ProtocolB & NSCopying & ProtocolA> . self ) )
376
376
377
+ expectEqual ( " _TtGC1a12GenericClassXcCS_9SomeClassS_9ProtocolA__ " ,
378
+ NSStringFromClass ( GenericClass< ProtocolA & SomeClass> . self ) )
379
+ expectEqual ( " _TtGC1a12GenericClassXlS_9ProtocolA__ " ,
380
+ NSStringFromClass ( GenericClass< ProtocolA & AnyObject> . self ) )
381
+
377
382
expectEqual ( " _TtGC1a17MultiGenericClassGVS_13GenericStructSi_GOS_11GenericEnumGS2_Si___ " ,
378
383
NSStringFromClass ( MultiGenericClass < GenericStruct < Int > ,
379
384
GenericEnum < GenericEnum < Int > > > . self) )
You can’t perform that action at this time.
0 commit comments