summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/anonymous2methodReference/beforeCallToDefault.java
blob: 34c118cd993bf98e1926d56bfb3d19261d0bd683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// "Replace with method reference" "false"
class Test {
  interface InOut {
    void run() throws IOException;
    default void foo(){}
  }

  InOut bind() {
    return new In<caret>Out() {
      @Override
      public void run() throws IOException {
        foo();
      }
    };
  }
}