blob: d1e3fb0c3e48667e95cea2c3da4a925ea565b351 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/**
* Used to fail with:
*
* Usage.java:5: error: incompatible types: Baz<String> cannot be converted to Foo<String>
* foo(f);
* ^
*/
public class Usage {
public Usage() {
Baz<String> f = null;
foo(f);
}
public void foo(Foo<String> f) { };
}
|