Files
kotlin-fork/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.kt
T
Sergej Jaskiewicz 02180e8685 Factor out duplicated mangling logic for functions into the base class
^KT-57777 Fixed
^KT-57818 Fixed
2023-05-26 10:55:24 +00:00

32 lines
529 B
Kotlin
Vendored

// WITH_STDLIB
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57775
enum class Test0(val x: Int) {
ZERO;
constructor() : this(0)
}
enum class Test1(val x: Int) {
ZERO, ONE(1);
constructor() : this(0)
}
enum class Test2(val x: Int) {
ZERO {
override fun foo() {
println("ZERO")
}
},
ONE(1) {
override fun foo() {
println("ONE")
}
};
constructor() : this(0)
abstract fun foo()
}