34267e436e
This also fixes weird suppressions in user code: instead of
«@Suppress("DEPRECATED_SYMBOL_WITH_MESSAGE")» you should now use
«@Suppress("DEPRECATION")»
12 lines
247 B
Kotlin
Vendored
12 lines
247 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
class Data {
|
|
@Deprecated("text")
|
|
operator fun component1(): String = throw Exception()
|
|
operator fun component2(): String = throw Exception()
|
|
}
|
|
|
|
fun use() {
|
|
val (<!DEPRECATION!>x<!>, y) = Data()
|
|
}
|