Skip to content

Commit

Permalink
Add a testcase for a fixed issue, remove a fixme that has been fixed.…
Browse files Browse the repository at this point in the history
… NFC.
  • Loading branch information
lattner committed Nov 18, 2015
1 parent 2c42ae6 commit 25e310c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions test/Generics/unbound.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ class SomeClassWithInvalidMethod {
}
}

// <rdar://problem/20792596> QoI: Cannot invoke with argument list (T), expected an argument list of (T)
protocol r20792596P {}

// expected-note @+1 {{in call to function 'foor20792596'}}
func foor20792596<T: r20792596P>(x: T) -> T {
return x
}

func callfoor20792596<T>(x: T) -> T {
return foor20792596(x) // expected-error {{generic parameter 'T' could not be inferred}}
}

1 change: 0 additions & 1 deletion test/expr/expressions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func basictest() {
// expected-note @-1 {{overloads for '+' exist with these partially matching parameter lists:}}


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

// Various tuple types.
Expand Down

0 comments on commit 25e310c

Please sign in to comment.