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
// CHECK-DIAGS-4: [[@LINE+1]]:{{[0-9]+}}: warning: use of 'print' treated as a reference to instance method
168
168
print(self)
169
-
// CHECK-DIAGS-5: [[@LINE-1]]:{{[0-9]+}}: error: use of 'print' nearly matches global function 'print(_:separator:terminator:)' in module 'Swift' rather than instance method 'print(_:extra:)'
169
+
// CHECK-DIAGS-5: [[@LINE-1]]:{{[0-9]+}}: error: missing argument for parameter 'extra' in call
// expected-error@-1 {{missing argument label 'b:' in call}}
450
450
CurriedClass.method3(c)(1.0, b:1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
451
451
CurriedClass.method3(c)(1) // expected-error {{missing argument for parameter 'b' in call}}
452
-
CurriedClass.method3(c)(c:1.0) // expected-error {{missing argument for parameter #1 in call}}
452
+
CurriedClass.method3(c)(c:1.0) // expected-error {{missing argument for parameter #1 in call}} expected-error {{cannot convert value of type 'Double' to expected argument type 'Int'}}
453
453
454
454
455
455
extensionCurriedClass{
456
456
func f(){
457
457
method3(1, b:2)
458
-
method3() // expected-error {{missing argument for parameter #1in call}}
458
+
method3() // expected-error {{missing arguments for parameters #1, 'b' in call}} {{13-13=<#Int#>, b: <#Int#>}}
459
459
method3(42) // expected-error {{missing argument for parameter 'b' in call}}
460
-
method3(self) // expected-error {{missing argument for parameter 'b' in call}}
460
+
method3(self)
461
+
// expected-error@-1:13 {{cannot convert value of type 'CurriedClass' to expected argument type 'Int'}}
462
+
// expected-error@-2:17 {{missing argument for parameter 'b' in call}} {{17-17=, b: <#Int#>}}
return[Count()] // expected-error {{missing argument for parameter 'title' in call}}
117
-
}, completedBy:{
117
+
}, completedBy:{ // expected-error {{contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored}} {{20-20= _ in}}
0 commit comments