mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
java resolve: don't stop on found static method of the interface (IDEA-225660)
if the call site' qualifier is incorrect GitOrigin-RevId: 782629045050df08fed3cf554682b63db8c9e1a8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ddf076a38c
commit
d6297185ce
@@ -51,4 +51,19 @@ class StaticMethodInterfaceExample {
|
||||
<error descr="Static method may be invoked on containing interface class only">T.staticMethod();</error>
|
||||
}
|
||||
}
|
||||
}
|
||||
class StaticMethodInterfaceExample2 {
|
||||
interface MyInterface {
|
||||
static void m(int a) { }
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
void m() { }
|
||||
|
||||
class MyInnerClass implements MyInterface {
|
||||
{
|
||||
m();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user