bcfafc601e
This change allows to revert adding `WITH_STDLIB` directive to tests which happened at `a9343aeb`. Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
14 lines
340 B
Kotlin
Vendored
14 lines
340 B
Kotlin
Vendored
enum class Test(val x: String, val closure1: () -> String) {
|
|
FOO("O", { FOO.x }) {
|
|
override val y: String = "K"
|
|
val closure2 = { y } // Implicit 'FOO'
|
|
override val z: String = closure2()
|
|
};
|
|
|
|
abstract val y: String
|
|
abstract val z: String
|
|
|
|
fun test() = closure1() + z
|
|
}
|
|
|
|
fun box() = Test.FOO.test() |