File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -94,3 +94,15 @@ class SomeClassWithInvalidMethod {
94
94
}
95
95
}
96
96
97
+ // <rdar://problem/20792596> QoI: Cannot invoke with argument list (T), expected an argument list of (T)
98
+ protocol r20792596P { }
99
+
100
+ // expected-note @+1 {{in call to function 'foor20792596'}}
101
+ func foor20792596< T: r20792596P > ( x: T ) -> T {
102
+ return x
103
+ }
104
+
105
+ func callfoor20792596< T> ( x: T ) -> T {
106
+ return foor20792596 ( x) // expected-error {{generic parameter 'T' could not be inferred}}
107
+ }
108
+
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ func basictest() {
51
51
// expected-note @-1 {{overloads for '+' exist with these partially matching parameter lists:}}
52
52
53
53
54
- // FIXME rdar://22333090 - Improve diagnostic.
55
54
var x9 : Int16 = x8 + 1 // expected-error{{cannot convert value of type 'Int8' to expected argument type 'Int16'}}
56
55
57
56
// Various tuple types.
You can’t perform that action at this time.
0 commit comments