Skip to content

Commit 25e310c

Browse files
committed
Add a testcase for a fixed issue, remove a fixme that has been fixed. NFC.
1 parent 2c42ae6 commit 25e310c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/Generics/unbound.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,15 @@ class SomeClassWithInvalidMethod {
9494
}
9595
}
9696

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+

test/expr/expressions.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ func basictest() {
5151
// expected-note @-1 {{overloads for '+' exist with these partially matching parameter lists:}}
5252

5353

54-
// FIXME rdar://22333090 - Improve diagnostic.
5554
var x9 : Int16 = x8 + 1 // expected-error{{cannot convert value of type 'Int8' to expected argument type 'Int16'}}
5655

5756
// Various tuple types.

0 commit comments

Comments
 (0)