check type within its bound: raw types (IDEA-57288)

This commit is contained in:
anna
2010-08-16 13:17:26 +04:00
parent ba36ff65a2
commit 42fc89c734
2 changed files with 42 additions and 3 deletions

View File

@@ -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;
}
}
}