Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/javaDeprecated.kt
T
2023-02-28 10:19:18 +00:00

17 lines
379 B
Kotlin
Vendored

// !DIAGNOSTICS: -NO_VALUE_FOR_PARAMETER
// FILE: A.java
@Deprecated
public class A {
@Deprecated
public String getFoo(String text) {
return text;
}
}
// FILE: B.kt
class B(private @property:Deprecated val foo: String) : <!DEPRECATION!>A<!>() {
override fun getFoo(text: String): String = super.<!DEPRECATION!>getFoo<!>(text + <!DEPRECATION!>foo<!>)
}