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,13 @@
import java.util.function.Consumer;
class Source {
}
class Destination {
public void doSomething(String s) {
}
public void foo() {
Consumer<String> doSomething = this::doSomething;
}
}