type distinction: remove non-symmetrie for type param bounds (IDEA-150724)

This commit is contained in:
Anna Kozlova
2016-01-27 13:57:06 +03:00
parent 64585129f6
commit ec89fa2295
3 changed files with 15 additions and 8 deletions
@@ -0,0 +1,11 @@
interface A<<warning descr="Type parameter 'K' is never used">K</warning>> {}
abstract class B implements A<B> {}
abstract class C<V extends A<V>> {
void m(V v){
C<B> c = <warning descr="Unchecked cast: 'C<V>' to 'C<B>'">(C<B>) this</warning>;
System.out.println(c);
System.out.println(v);
}
}