mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
prefer generics to raw when more specific was not detected (IDEA-67576)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package pck;
|
||||
|
||||
interface A<T>
|
||||
{
|
||||
<S> T foo();
|
||||
}
|
||||
|
||||
interface B
|
||||
{
|
||||
<S> Object foo();
|
||||
}
|
||||
|
||||
interface C extends A, B { }
|
||||
|
||||
class D
|
||||
{
|
||||
void bar(C x)
|
||||
{
|
||||
x.foo();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user