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

27 lines
514 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
class A(x: String = "", y: String = "") {
constructor(x: String, y: String): this(x, y)
constructor(): this("", "")
constructor(): this("", "")
}
class B {
constructor(x: Int)
}
fun B(x: Int) {}
class Outer {
class A(x: String = "", y: String = "") {
constructor(x: String, y: String): this(x, y)
constructor(): this("", "")
constructor(): this("", "")
}
class B {
constructor(x: Int)
}
fun B(x: Int) {}
}