21 lines
408 B
Kotlin
Vendored
21 lines
408 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 val foo: String) : <!DEPRECATED_SYMBOL_WITH_MESSAGE!>A<!>() {
|
|
override fun getFoo(text: String): String = super.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>getFoo<!>(text + foo)
|
|
}
|