mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 15:20:54 +07:00
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: 5b74826b2383518fa7a8a0fcbbd0d17271aa8381
11 lines
540 B
Java
11 lines
540 B
Java
public class LambdaTest {
|
|
Op lambda_fib = (n) -> (n < 2) ? 1 : <error descr="Cannot read value of field 'lambda_fib' from inside the field's definition">lambda_fib</error>.op(n - 1) + <error descr="Cannot read value of field 'lambda_fib' from inside the field's definition">lambda_fib</error>.op(n - 2);
|
|
|
|
{
|
|
Op lambda_fib = (n) -> (n < 2) ? 1 : <error descr="Variable 'lambda_fib' might not have been initialized">lambda_fib</error>.op(n - 1) + lambda_fib.op(n - 2);
|
|
}
|
|
|
|
interface Op {
|
|
int op(int n);
|
|
}
|
|
} |