34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
21 lines
370 B
Kotlin
Vendored
21 lines
370 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) : <!DEPRECATION!>A<!>() {
|
|
override fun getFoo(text: String): String = super.<!DEPRECATION!>getFoo<!>(text + foo)
|
|
}
|