blob: 98b3aa74ae8d019fe5272d319b1835e303b3be34 [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 */