Files
kotlin-fork/compiler/testData/diagnostics/tests/secondaryConstructors/dataClasses.kt
T
2019-02-14 12:31:42 +03:00

15 lines
373 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
data class A1(val x: String) {
constructor(): this("")
}
data class A2(val y: String, val z: Int) {
constructor(x: String): this(x, 0)
}
data class <!DATA_CLASS_WITHOUT_PARAMETERS, PRIMARY_CONSTRUCTOR_REQUIRED_FOR_DATA_CLASS!>A3<!> {
constructor()
}
data class A4 internal constructor<!DATA_CLASS_WITHOUT_PARAMETERS!>()<!>