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
Copy file name to clipboardExpand all lines: test/Constraints/diagnostics.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -339,7 +339,7 @@ c.method2(1.0)(b: 2.0) // expected-error {{cannot convert value of type 'Double'
339
339
CurriedClass.method1(c)()
340
340
_ =CurriedClass.method1(c)
341
341
CurriedClass.method1(c)(1) // expected-error {{argument passed to call that takes no arguments}}
342
-
CurriedClass.method1(2.0)(1) // expected-error {{cannot convert value of type 'Double' to expected argument type 'CurriedClass'}}
342
+
CurriedClass.method1(2.0)(1) // expected-error {{use of instance member 'method1' on type 'CurriedClass'; did you mean to use a value of type 'CurriedClass' instead?}}
343
343
344
344
CurriedClass.method2(c)(32)(b:1)
345
345
_ =CurriedClass.method2(c)
@@ -380,7 +380,7 @@ CurriedClass.m1(2, b: 42) // expected-error {{use of instance member 'm1' on t
380
380
381
381
382
382
// <rdar://problem/22108559> QoI: Confusing error message when calling an instance method as a class method
383
-
CurriedClass.m2(12) // expected-error {{cannot convert value of type 'Int' to expected argument type 'CurriedClass'}}
383
+
CurriedClass.m2(12) // expected-error {{use of instance member 'm2' on type 'CurriedClass'; did you mean to use a value of type 'CurriedClass' instead?}}
0 commit comments