blob: 178cdc4fc325d3ed816d8dd48f5f0c9da4ff16c1 [file] [log] [blame]
interface I {
int m();
}
class XXX {
int var;
static int ourVar;
static void foo() {
I s = () -> <error descr="Non-static field 'var' cannot be referenced from a static context">var</error> + ourVar;
}
void bar() {
I s = ()->var + ourVar;
}
}