34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
32 lines
634 B
Kotlin
Vendored
32 lines
634 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
|
|
class PropertyHolder {
|
|
@Deprecated("")
|
|
val a1 = 1
|
|
|
|
@property:Deprecated("")
|
|
var a2 = ""
|
|
|
|
@get:Deprecated("")
|
|
public val withGetter: String = ""
|
|
|
|
@set:Deprecated("")
|
|
public var withSetter: String = ""
|
|
}
|
|
|
|
fun fn() {
|
|
val holder = PropertyHolder()
|
|
|
|
holder.<!DEPRECATION!>a1<!>
|
|
holder.<!DEPRECATION!>a2<!>
|
|
holder.<!DEPRECATION!>withGetter<!>
|
|
holder.<!DEPRECATION!>withSetter<!> = "A"
|
|
}
|
|
|
|
fun literals() {
|
|
PropertyHolder::<!DEPRECATION!>a1<!>
|
|
PropertyHolder::<!DEPRECATION!>a2<!>
|
|
PropertyHolder::withGetter
|
|
PropertyHolder::withSetter
|
|
}
|