02180e8685
^KT-57777 Fixed ^KT-57818 Fixed
32 lines
529 B
Kotlin
Vendored
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()
|
|
}
|