move instance method with method ref: ensure qualifier is not deleted

IDEA-181919
This commit is contained in:
Anna.Kozlova
2017-11-13 16:41:50 +01:00
parent df9fe45138
commit 5758bb4185
4 changed files with 36 additions and 2 deletions
@@ -0,0 +1,12 @@
import java.util.function.Consumer;
class Source {
public void f<caret>oo(Destination destination) {
Consumer<String> doSomething = destination::doSomething;
}
}
class Destination {
public void doSomething(String s) {
}
}