summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/highlighting/IDEA123308.java
blob: b650fd93b6adf532b044002e566c7077484c6b8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Test {
  private final int a;

  public Test() {
    a = 1;
    run(() -> {
      <error descr="Cannot assign a value to final variable 'a'">a</error> = 2;
    });
  }

  public void run(Runnable r) {
    r.run();
  }
}