mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
14 lines
204 B
Kotlin
Vendored
14 lines
204 B
Kotlin
Vendored
// !LANGUAGE: +InnerClassInEnumEntryClass
|
|
|
|
enum class A {
|
|
X {
|
|
val x = 1
|
|
fun foo() {}
|
|
|
|
inner class Inner {
|
|
val y = x
|
|
fun bar() = foo()
|
|
}
|
|
}
|
|
}
|