accept static methods with body in interfaces (IDEA-124745)

This commit is contained in:
Anna Kozlova
2014-05-05 13:42:32 +04:00
parent e4a77b6a34
commit dc73135a77
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
// "Create Method 'fooBar'" "true"
interface I {
static void fooBar() {
}
}
class Test {
void test() {
Runnable runnable = I::fooBar;
}
}

View File

@@ -0,0 +1,9 @@
// "Create Method 'fooBar'" "true"
interface I {
}
class Test {
void test() {
Runnable runnable = I::foo<caret>Bar;
}
}