mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: check bounds problems for all variables acceptable in current context (IDEA-138407); reject complicated dependencies (see JDK-8039299)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
class Foo {
|
||||
{
|
||||
Bar<Baz> b = method(new Bar<>());
|
||||
}
|
||||
|
||||
static <T> T method(Class<T> t) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <T> T method(T t) {
|
||||
return t;
|
||||
}
|
||||
}
|
||||
|
||||
class Bar<T extends Enum<T>> {
|
||||
|
||||
}
|
||||
|
||||
enum Baz {}
|
||||
Reference in New Issue
Block a user