mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
type distinction: remove non-symmetrie for type param bounds (IDEA-150724)
This commit is contained in:
+11
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user