Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/SecondaryConstructorCall.kt
T

10 lines
217 B
Kotlin
Vendored

// FIR_IDENTICAL
// KT-7753 false positive: enum constructor can be called from secondary constructor
enum class A(val c: Int) {
ONE(1),
TWO(2),
THREE(3),
FORTY_TWO();
constructor(): this(42)
}