blob: 64d4cd1cb33550892973e118f76b96da84665067 [file]
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// RUN_PIPELINE_TILL: FRONTEND
class SimpleKlass {
@Deprecated("deprecated and hidden", level = DeprecationLevel.HIDDEN)
operator fun component1(): Int = 42
}
fun test(simpleKlass: SimpleKlass) {
val [s1] = <!COMPONENT_FUNCTION_MISSING!>simpleKlass<!>
}
/* GENERATED_FIR_TAGS: classDeclaration, destructuringDeclaration, functionDeclaration, integerLiteral, localProperty,
operator, propertyDeclaration, stringLiteral */