JavaCompilerCore/examples/hoti/Test.jav
2013-10-18 13:33:46 +02:00

15 lines
223 B
Java
Executable File

interface AA<a> {}
interface BB<a> {}
class CC implements AA<Integer>, BB<Character> {}
class BoundedTypeVar {
CC c;
<T extends AA<Integer> & BB<Character>> m(T x) {
m(new CC());
x = new CC();
}
}