mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
accept static methods with body in interfaces (IDEA-124745)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
interface I {
|
||||
static void fooBar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
Runnable runnable = I::fooBar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Create Method 'fooBar'" "true"
|
||||
interface I {
|
||||
}
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
Runnable runnable = I::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user