blob: 3eb3a5435eb2369bf241fddf0ce776b3f3b854a6 [file]
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// RUN_PIPELINE_TILL: CODEGEN
// 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()
}
/* GENERATED_FIR_TAGS: classDeclaration, destructuringDeclaration, functionDeclaration, localProperty, operator,
propertyDeclaration, stringLiteral */