Files
kotlin/compiler/testData/codegen/box/enum/innerClassMethodInEnumEntryClass2.kt
2018-07-23 15:08:18 +03:00

19 lines
265 B
Kotlin
Vendored

// LANGUAGE_VERSION: 1.2
enum class A {
X {
val x = "OK"
inner class Inner {
fun foo() = this@X.x
}
val z = Inner()
override val test = z.foo()
};
abstract val test: String
}
fun box() = A.X.test