blob: a9a57d05581626768a183036d9214a0e2b28b80e [file]
// FIR_IDENTICAL
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// RUN_PIPELINE_TILL: FRONTEND
// RENDER_DIAGNOSTICS_FULL_TEXT
data class Example(val a: String, val b: Int) {
fun testRedeclaration(e: Example){
val [<!REDECLARATION!>b<!>, <!REDECLARATION!>b<!>] = e
}
}
/* GENERATED_FIR_TAGS: classDeclaration, data, destructuringDeclaration, functionDeclaration, localProperty,
primaryConstructor, propertyDeclaration */