34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
23 lines
687 B
Kotlin
Vendored
23 lines
687 B
Kotlin
Vendored
fun test() {
|
|
val c = MyClass()
|
|
c.<warning descr="[DEPRECATION] 'getter for test1: String' is deprecated. Use A instead">test1</warning>
|
|
c.<warning descr="[DEPRECATION] 'getter for test2: String' is deprecated. Use A instead">test2</warning>
|
|
c.test2 = ""
|
|
|
|
c.<warning descr="[DEPRECATION] 'test3: String' is deprecated. Use A instead">test3</warning>
|
|
}
|
|
|
|
class MyClass() {
|
|
public val test1: String = ""
|
|
@Deprecated("Use A instead") get
|
|
|
|
public var test2: String = ""
|
|
@Deprecated("Use A instead") get
|
|
|
|
@Deprecated("Use A instead") public val test3: String = ""
|
|
@Deprecated("Use A instead") get
|
|
}
|
|
|
|
// NO_CHECK_INFOS
|
|
// NO_CHECK_WEAK_WARNINGS
|