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
// SR-2505: "Call arguments did not match up" assertion
4
+
5
+
func sr_2505(_ a:Any){} // expected-note {{}}
6
+
sr_2505() // expected-error {{missing argument for parameter #1 in call}}
7
+
sr_2505(a:1) // expected-error {{extraneous argument label 'a:' in call}}
8
+
sr_2505(1,2) // expected-error {{extra argument in call}}
9
+
sr_2505(a:1,2) // expected-error {{extra argument in call}}
10
+
11
+
structC_2505{
12
+
init(_ arg:Any){
13
+
}
14
+
}
15
+
16
+
protocolP_2505{
17
+
}
18
+
19
+
extensionC_2505{
20
+
init<T>(from:[T])where T:P_2505{
21
+
}
22
+
}
23
+
24
+
classC2_2505:P_2505{
25
+
}
26
+
27
+
letc_2505=C_2505(arg:[C2_2505()]) // expected-error {{argument labels '(arg:)' do not match any available overloads}} expected-note {{overloads for 'C_2505' exist}}
0 commit comments