mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
check all type parameters bounds (IDEA-109556)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Base { }
|
||||
class Extended extends Base {}
|
||||
|
||||
class Test<T extends Base> {
|
||||
<T extends Base, U extends T> void test(T x, Class<U> test) {}
|
||||
{
|
||||
<error descr="Inferred type 'Base' for type parameter 'U' is not within its bound; should extend 'Extended'">test(new Extended(), Base.class)</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user