mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
15 lines
195 B
Kotlin
Vendored
15 lines
195 B
Kotlin
Vendored
|
|
enum class X {
|
|
B {
|
|
override val value = "OK"
|
|
|
|
override val test = ::value.get()
|
|
};
|
|
|
|
abstract val value: String
|
|
|
|
abstract val test: String
|
|
}
|
|
|
|
fun box() = X.B.test
|