You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@abi(subscript(param21_generic00 _: Int, _: Int)-> Int) // expected-error {{cannot give subscript 'subscript(param21_generic00:)' the ABI of a subscript with a different number of parameters}}
115
+
subscript(param21_generic00 _:Int)->Int{0}
116
+
117
+
@abi(subscript(param12_generic00 _: Int)-> Int) // expected-error {{cannot give subscript 'subscript(param12_generic00:_:)' the ABI of a subscript with a different number of parameters}}
@abi(subscript<T>(param11_generic10 _: T)-> Int) // expected-error {{declaration in '@abi' should not have generic signature because 'subscript(param11_generic10:)' is not generic}}
124
+
subscript(param11_generic10 _:Int)->Int{0}
125
+
126
+
@abi(subscript<T>(param21_generic10 _: T, _: Int)-> Int) // expected-error {{declaration in '@abi' should not have generic signature because 'subscript(param21_generic10:)' is not generic}}
127
+
subscript(param21_generic10 _:Int)->Int{0}
128
+
129
+
@abi(subscript<T>(param12_generic10 _: T)-> Int) // expected-error {{declaration in '@abi' should not have generic signature because 'subscript(param12_generic10:_:)' is not generic}}
130
+
subscript(param12_generic10 _:Int, _:Int)->Int{0}
131
+
132
+
@abi(subscript<T>(param22_generic10 _: T, _: Int)-> Int) // expected-error {{declaration in '@abi' should not have generic signature because 'subscript(param22_generic10:_:)' is not generic}}
133
+
subscript(param22_generic10 _:Int, _:Int)->Int{0}
134
+
135
+
@abi(subscript(param11_generic01 _: Int)-> Int) // expected-error {{declaration in '@abi' should have generic signature compatible with '<T where T : Copyable, T : Escapable>'}}
136
+
subscript<T>(param11_generic01 _:T)->Int{0}
137
+
138
+
@abi(subscript(param21_generic01 _: Int, _: Int)-> Int) // expected-error {{declaration in '@abi' should have generic signature compatible with '<T where T : Copyable, T : Escapable>'}}
139
+
subscript<T>(param21_generic01 _:T)->Int{0}
140
+
141
+
@abi(subscript(param12_generic01 _: Int)-> Int) // expected-error {{declaration in '@abi' should have generic signature compatible with '<T where T : Copyable, T : Escapable>'}}
@abi(subscript(param22_generic01 _: Int, _: Int)-> Int) // expected-error {{declaration in '@abi' should have generic signature compatible with '<T where T : Copyable, T : Escapable>'}}
@abi(subscript<T>(param21_generic11 _: T, _: Int)-> Int) // expected-error {{cannot give subscript 'subscript(param21_generic11:)' the ABI of a subscript with a different number of parameters}}
151
+
subscript<T>(param21_generic11 _:T)->Int{0}
152
+
153
+
@abi(subscript<T>(param12_generic11 _: T)-> Int) // expected-error {{cannot give subscript 'subscript(param12_generic11:_:)' the ABI of a subscript with a different number of parameters}}
0 commit comments