mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
allow compile-time constants to be used from static field initializers (IDEA-142243)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void m() {
|
||||
final String s = "b";
|
||||
final Object o = null;
|
||||
class A {
|
||||
static final String t = s;
|
||||
<error descr="Inner classes cannot have static declarations">static</error> final Object j = <error descr="Non-static variable 'o' cannot be referenced from a static context">o</error>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user