blob: 1e416770da18888e65bb6f17023abb455cac832f [file]
// 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 */