de3f31cf78
No support for inheritance deprecations and deprecations in qualifier's parts
18 lines
396 B
Kotlin
Vendored
18 lines
396 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !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<!>)
|
|
}
|