@@ -79,28 +79,28 @@ DemangleToMetadataTests.test("function types") {
79
79
expectEqual ( type ( of: f0_throws) , _typeByName ( " yyKc " ) !)
80
80
81
81
// More parameters.
82
- expectEqual ( type ( of: f1) , _typeByName ( " yyyt_tc " ) !)
83
- expectEqual ( type ( of: f2) , _typeByName ( " yyyt_yttc " ) !)
82
+ expectEqual ( type ( of: f1) , _typeByName ( " yyt_tc " ) !)
83
+ expectEqual ( type ( of: f2) , _typeByName ( " yyt_yttc " ) !)
84
84
85
85
// Variadic parameters.
86
- expectEqual ( type ( of: f1_variadic) , _typeByName ( " yyytd_tc " ) !)
86
+ expectEqual ( type ( of: f1_variadic) , _typeByName ( " yytd_tc " ) !)
87
87
88
88
// Inout parameters.
89
- expectEqual ( type ( of: f1_inout) , _typeByName ( " yyytzc " ) !)
89
+ expectEqual ( type ( of: f1_inout) , _typeByName ( " yytzc " ) !)
90
90
91
91
// Ownership parameters.
92
- expectEqual ( type ( of: f1_shared) , _typeByName ( " yyyXlhc " ) !)
93
- expectEqual ( type ( of: f1_owned) , _typeByName ( " yyyXlnc " ) !)
92
+ expectEqual ( type ( of: f1_shared) , _typeByName ( " yyXlhc " ) !)
93
+ expectEqual ( type ( of: f1_owned) , _typeByName ( " yyXlnc " ) !)
94
94
95
95
// Concurrent function types.
96
- expectEqual ( type ( of: f1_takes_concurrent) , _typeByName ( " yyyyYbXEc " ) !)
96
+ expectEqual ( type ( of: f1_takes_concurrent) , _typeByName ( " yyyYbXEc " ) !)
97
97
98
98
// Mix-and-match.
99
- expectEqual ( type ( of: f2_variadic_inout) , _typeByName ( " yyytd_ytztc " ) !)
99
+ expectEqual ( type ( of: f2_variadic_inout) , _typeByName ( " yytd_ytztc " ) !)
100
100
101
101
// A function type that hasn't been built before.
102
102
expectEqual ( " (Int, Float, Double, String, Character, UInt, Bool) -> () " ,
103
- String ( describing: _typeByName ( " yySi_SfSdSSs9CharacterVSuSbtc " ) !) )
103
+ String ( describing: _typeByName ( " ySi_SfSdSSs9CharacterVSuSbtc " ) !) )
104
104
105
105
// Escaping
106
106
expectEqual ( type ( of: f1_escaping) , _typeByName ( " ySfSicc " ) !)
@@ -145,16 +145,16 @@ func f1_composition_superclass(_: C & P1 & P2) { }
145
145
146
146
DemangleToMetadataTests . test ( " existential types " ) {
147
147
// Any, AnyObject
148
- expectEqual ( type ( of: f2_any_anyobject) , _typeByName ( " yyyp_yXltc " ) !)
148
+ expectEqual ( type ( of: f2_any_anyobject) , _typeByName ( " yyp_yXltc " ) !)
149
149
150
150
// References to protocols.
151
- expectEqual ( type ( of: f1_composition) , _typeByName ( " yy4main2P1_4main2P2pc " ) !)
151
+ expectEqual ( type ( of: f1_composition) , _typeByName ( " y4main2P1_4main2P2pc " ) !)
152
152
153
153
// Reference to protocol with AnyObject.
154
- expectEqual ( type ( of: f1_composition_anyobject) , _typeByName ( " yy4main2P1_Xlc " ) !)
154
+ expectEqual ( type ( of: f1_composition_anyobject) , _typeByName ( " y4main2P1_Xlc " ) !)
155
155
156
156
// References to superclass.
157
- expectEqual ( type ( of: f1_composition_superclass) , _typeByName ( " yy4main2P1_4main2P2AA1CCXcc " ) !)
157
+ expectEqual ( type ( of: f1_composition_superclass) , _typeByName ( " y4main2P1_4main2P2AA1CCXcc " ) !)
158
158
159
159
// Demangle an existential type that hasn't been seen before.
160
160
expectEqual ( " P1 & P2 & P3 " , String ( describing: _typeByName ( " 4main2P1_4main2P24main2P3p " ) !) )
0 commit comments