34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
15 lines
306 B
Kotlin
Vendored
15 lines
306 B
Kotlin
Vendored
class MyClass {
|
|
val i = 0
|
|
}
|
|
|
|
@Deprecated("Use A instead") operator fun MyClass.inc(): MyClass { return MyClass() }
|
|
|
|
fun test() {
|
|
var x3 = MyClass()
|
|
x3<warning descr="[DEPRECATION] 'inc(): MyClass' is deprecated. Use A instead">++</warning>
|
|
x3.i
|
|
}
|
|
|
|
// NO_CHECK_INFOS
|
|
// NO_CHECK_WEAK_WARNINGS
|