dc9193893e
Note that there is a questionable behavior that will be fixed later. Right now it's not fully clear because for the same situation in Kotlin, the compiler reports warnings at declaration-site and it's not possible to do so for Java ^KT-53153
33 lines
414 B
Kotlin
Vendored
33 lines
414 B
Kotlin
Vendored
// !LANGUAGE: -EnumEntries
|
|
|
|
// FILE: JEnumEntry.java
|
|
|
|
public enum JEnumEntry {
|
|
entries;
|
|
}
|
|
|
|
// FILE: JEnumStaticField.java
|
|
|
|
public enum JEnumStaticField {
|
|
;
|
|
|
|
public static final int entries = 0;
|
|
}
|
|
|
|
// FILE: JEnumField.java
|
|
|
|
public enum JEnumField {
|
|
;
|
|
|
|
public final int entries = 0;
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun test() {
|
|
JEnumEntry.entries
|
|
JEnumStaticField.entries
|
|
|
|
JEnumField::entries
|
|
}
|