blob: e905d6d73e07005df53c2f4236efb52beed54dbf [file]
// RUN_PIPELINE_TILL: FRONTEND
// LANGUAGE: +NameBasedDestructuring +EnableNameBasedDestructuringShortForm
class A
fun A.foo(): String = ""
fun test(a: A) {
if (true) { (val <!UNRESOLVED_REFERENCE!>foo<!>) = a }
if (true) { val (<!UNRESOLVED_REFERENCE!>foo<!>) = a }
}
/* GENERATED_FIR_TAGS: classDeclaration, destructuringDeclaration, funWithExtensionReceiver, functionDeclaration,
localProperty, propertyDeclaration, stringLiteral */