mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
create method from method reference: make abstract if inside interface and not static (IDEA-156596)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Create method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
interface A {
|
||||
void fooBar();
|
||||
}
|
||||
void m(A a){
|
||||
Runnable r = a::fooBar;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Create method 'fooBar'" "true"
|
||||
class FooBar {
|
||||
interface A {}
|
||||
void m(A a){
|
||||
Runnable r = a::foo<caret>Bar;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user