Merge two deprecation diagnostics into one DEPRECATION
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
This commit is contained in:
committed by
Andrey Breslav
parent
c817949221
commit
34267e436e
+7
-7
@@ -17,15 +17,15 @@ class PropertyHolder {
|
||||
fun fn() {
|
||||
val holder = PropertyHolder()
|
||||
|
||||
holder.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>a1<!>
|
||||
holder.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>a2<!>
|
||||
holder.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>withGetter<!>
|
||||
holder.<!DEPRECATED_SYMBOL_WITH_MESSAGE!>withSetter<!> = "A"
|
||||
holder.<!DEPRECATION!>a1<!>
|
||||
holder.<!DEPRECATION!>a2<!>
|
||||
holder.<!DEPRECATION!>withGetter<!>
|
||||
holder.<!DEPRECATION!>withSetter<!> = "A"
|
||||
}
|
||||
|
||||
fun literals() {
|
||||
PropertyHolder::<!DEPRECATED_SYMBOL_WITH_MESSAGE!>a1<!>
|
||||
PropertyHolder::<!DEPRECATED_SYMBOL_WITH_MESSAGE!>a2<!>
|
||||
PropertyHolder::<!DEPRECATION!>a1<!>
|
||||
PropertyHolder::<!DEPRECATION!>a2<!>
|
||||
PropertyHolder::withGetter
|
||||
PropertyHolder::withSetter
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user