Files
kotlin-fork/compiler/testData/codegen/box/enum/superCallInEnumLiteral.kt
T
Nikolay Lunyak bcfafc601e Add EnumEntries to minimal-stdlib-for-tests
This change allows to revert adding `WITH_STDLIB` directive
to tests which happened at `a9343aeb`.

Co-authored-by: Alexander Udalov <Alexander.Udalov@jetbrains.com>
2023-03-02 10:23:38 +00:00

18 lines
281 B
Kotlin
Vendored

package test
fun box() = E.E1.f() + E.E2.f()
enum class E {
E1 {
override fun f(): String {
return super<E>.f() + "O"
}
},
E2 {
override fun f(): String {
return super.f() + "K"
}
};
open fun f() = ""
}