34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
13 lines
266 B
Kotlin
Vendored
13 lines
266 B
Kotlin
Vendored
class MyRunnable() {}
|
|
|
|
@Deprecated("Use A instead") operator fun MyRunnable.invoke() {
|
|
}
|
|
|
|
fun test() {
|
|
val m = MyRunnable()
|
|
<warning descr="[DEPRECATION] 'invoke(): Unit' is deprecated. Use A instead">m</warning>()
|
|
}
|
|
|
|
// NO_CHECK_INFOS
|
|
// NO_CHECK_WEAK_WARNINGS
|