Files
kotlin-fork/compiler/testData/diagnostics/tests/secondaryConstructors/noDefaultIfEmptySecondary.kt
T
Denis Zharkov 01e5ee718f Allow secondary constructors without body
#KT-6967 Fixed
2015-03-27 16:09:40 +03:00

5 lines
183 B
Kotlin
Vendored

// 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)
}