create method from method reference: make abstract if inside interface and not static (IDEA-156596)

This commit is contained in:
Anna Kozlova
2016-05-25 19:33:39 +03:00
parent f9cc8003b6
commit 137ee60763
3 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
// "Create method 'fooBar'" "true"
class FooBar {
interface A {
void fooBar();
}
void m(A a){
Runnable r = a::fooBar;
}
}

View File

@@ -0,0 +1,7 @@
// "Create method 'fooBar'" "true"
class FooBar {
interface A {}
void m(A a){
Runnable r = a::foo<caret>Bar;
}
}