blob: 8dcbe4829afba09326a736a8a5f7b4335d11f8e6 [file]
// LANGUAGE: +NameBasedDestructuring +DeprecateNameMismatchInShortDestructuringWithParentheses +EnableNameBasedDestructuringShortForm
// ISSUE: KT-67185
// WITH_STDLIB
fun noop() {}
fun foo(list: List<Pair<String, String>>) {
list.map { [a, b] -> { noop() } }
.forEach { it() }
}
fun box(): String {
val list = listOf("a" to "b", "c" to "")
foo(list)
return "OK"
}