@@ -79,28 +79,28 @@ DemangleToMetadataTests.test("function types") {
7979 expectEqual ( type ( of: f0_throws) , _typeByName ( " yyKc " ) !)
8080
8181 // 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 " ) !)
8484
8585 // Variadic parameters.
86- expectEqual ( type ( of: f1_variadic) , _typeByName ( " yyytd_tc " ) !)
86+ expectEqual ( type ( of: f1_variadic) , _typeByName ( " yytd_tc " ) !)
8787
8888 // Inout parameters.
89- expectEqual ( type ( of: f1_inout) , _typeByName ( " yyytzc " ) !)
89+ expectEqual ( type ( of: f1_inout) , _typeByName ( " yytzc " ) !)
9090
9191 // 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 " ) !)
9494
9595 // Concurrent function types.
96- expectEqual ( type ( of: f1_takes_concurrent) , _typeByName ( " yyyyYbXEc " ) !)
96+ expectEqual ( type ( of: f1_takes_concurrent) , _typeByName ( " yyyYbXEc " ) !)
9797
9898 // Mix-and-match.
99- expectEqual ( type ( of: f2_variadic_inout) , _typeByName ( " yyytd_ytztc " ) !)
99+ expectEqual ( type ( of: f2_variadic_inout) , _typeByName ( " yytd_ytztc " ) !)
100100
101101 // A function type that hasn't been built before.
102102 expectEqual ( " (Int, Float, Double, String, Character, UInt, Bool) -> () " ,
103- String ( describing: _typeByName ( " yySi_SfSdSSs9CharacterVSuSbtc " ) !) )
103+ String ( describing: _typeByName ( " ySi_SfSdSSs9CharacterVSuSbtc " ) !) )
104104
105105 // Escaping
106106 expectEqual ( type ( of: f1_escaping) , _typeByName ( " ySfSicc " ) !)
@@ -145,16 +145,16 @@ func f1_composition_superclass(_: C & P1 & P2) { }
145145
146146DemangleToMetadataTests . test ( " existential types " ) {
147147 // Any, AnyObject
148- expectEqual ( type ( of: f2_any_anyobject) , _typeByName ( " yyyp_yXltc " ) !)
148+ expectEqual ( type ( of: f2_any_anyobject) , _typeByName ( " yyp_yXltc " ) !)
149149
150150 // References to protocols.
151- expectEqual ( type ( of: f1_composition) , _typeByName ( " yy4main2P1_4main2P2pc " ) !)
151+ expectEqual ( type ( of: f1_composition) , _typeByName ( " y4main2P1_4main2P2pc " ) !)
152152
153153 // 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 " ) !)
155155
156156 // References to superclass.
157- expectEqual ( type ( of: f1_composition_superclass) , _typeByName ( " yy4main2P1_4main2P2AA1CCXcc " ) !)
157+ expectEqual ( type ( of: f1_composition_superclass) , _typeByName ( " y4main2P1_4main2P2AA1CCXcc " ) !)
158158
159159 // Demangle an existential type that hasn't been seen before.
160160 expectEqual ( " P1 & P2 & P3 " , String ( describing: _typeByName ( " 4main2P1_4main2P24main2P3p " ) !) )
0 commit comments