mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
check type within its bound: raw types (IDEA-57288)
This commit is contained in:
@@ -69,7 +69,30 @@ public class WithingBounds {
|
||||
}
|
||||
|
||||
|
||||
//---------------------------------
|
||||
void testE25() {
|
||||
class B {
|
||||
void foo() {
|
||||
this.<Iterable>bar();
|
||||
}
|
||||
|
||||
<T extends Iterable<String>> void bar() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void testE26() {
|
||||
class A<T>{}
|
||||
class B {
|
||||
void foo() {
|
||||
this.<A>bar();
|
||||
}
|
||||
|
||||
<T extends A<String>> void bar() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//---------------------------------
|
||||
|
||||
void testE3() {
|
||||
class A {
|
||||
@@ -143,4 +166,4 @@ public class WithingBounds {
|
||||
|
||||
ToCheckExtends<<error descr="Type parameter 'A' is not within its bound; should extend 'B'">? super A</error>> pr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user