Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/deprecatedConstructor.fir.kt
T

35 lines
433 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
// FILE: A.kt
class A(s: String) {
@Deprecated("")
constructor(i: Int) : this(i.toString()) {
}
}
// FILE: B.java
public class B extends A {
@Deprecated
public B(int i) {
}
public B(String s) {
}
}
// FILE: C.kt
class C @Deprecated("") constructor(s: String) {
}
// FILE: use.kt
fun use(a: A, b: B, c: C) {
A(3)
A("")
B(3)
B("")
C("s")
}