mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
lambda: initial is assignable check; effectively final; acceptable context
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class XXX {
|
||||
void foo() {
|
||||
int k = 0;
|
||||
int n = 2;
|
||||
Runnable r = ()->{
|
||||
<error descr="Variable used in lambda expression should be effectively final">k</error> = n;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user