summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/lambdaCodeBlock2Expr/afterVoidValueChangedNoConflict.java
blob: 29553765197464bd46b70e2f0e7c455e7d8cfdd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// "Replace with expression lambda" "true"
class Test {
  {
    a(() -> new Object(){});
  }

  void a(Supplier<Object> s) {}
  void a(AI<Object> s) {}

  interface AI<K> {
    void m();
  }
  interface Supplier<T> {
    T get();
  }
}