mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
access static via instance for calls on interface refs (IDEA-183919)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Access static 'I.m()' via class 'I' reference" "true"
|
||||
interface I {
|
||||
static void m() {}
|
||||
}
|
||||
|
||||
class A {
|
||||
void f(I i){
|
||||
I.m();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Access static 'I.m()' via class 'I' reference" "true"
|
||||
interface I {
|
||||
static void m() {}
|
||||
}
|
||||
|
||||
class A {
|
||||
void f(I i){
|
||||
i.<caret>m();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user