mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 16:47:50 +07:00
GitOrigin-RevId: 533518be63dded4577e70a4ecbd747203d136689
14 lines
443 B
Java
14 lines
443 B
Java
enum MyEnumTest {
|
|
FOO;
|
|
MyEnumTest Foo = <error descr="Accessing enum constant from enum instance field initializer is not allowed">FOO</error>;
|
|
|
|
{
|
|
MyEnumTest foo = <error descr="Accessing enum constant from enum instance initializer is not allowed">FOO</error>;
|
|
}
|
|
static MyEnumTest Bar = FOO;
|
|
|
|
MyEnumTest() {
|
|
System.out.println(<error descr="Accessing static field from enum constructor is not allowed">Bar</error>);
|
|
}
|
|
}
|