Files
kotlin-fork/compiler/testData/diagnostics/tests/secondaryConstructors/noDefaultIfEmptySecondary.kt
T

6 lines
200 B
Kotlin
Vendored

// FIR_IDENTICAL
// do not report generate empty synthetic constructor by primary as it leads to CONFLICTING_JVM_DECLARATIONS
class A(val x: Int = 1, val y: Int = 2) {
constructor(): this(0, 0)
}