mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
20 lines
221 B
Kotlin
20 lines
221 B
Kotlin
// FILE: A.java
|
|
public enum A {
|
|
ENTRY("1"),
|
|
ANOTHER("2");
|
|
|
|
public String s;
|
|
|
|
private A(String s) {
|
|
this.s = s;
|
|
}
|
|
}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun main() {
|
|
val c = A.ENTRY
|
|
c.s
|
|
A.ANOTHER.s
|
|
}
|