summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/lambdaCodeBlock2Expr/beforeVoidValueChanged.java
blob: 20a6c0beac73d981aa65930651254b6a05344c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// "Replace with expression lambda" "false"
interface A {
  int m(int x);
}

interface B {
  void m(boolean x);
}

abstract class X {
  abstract void foo(A j);
  abstract void foo(B i);

  void bar(Object o) {
    foo(x -> {
      retu<caret>rn x += 1;
    });
  }
}