// !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_ANONYMOUS_PARAMETER data class A(val x: Int, val y: String) data class B(val u: Double, val w: Short) fun foo(block: (A, B) -> Unit) { } fun bar() { foo { (a, a), b -> a checkType { _() } b checkType { _() } } foo { (a, b), a -> a checkType { _() } b checkType { _() } } foo { a, (a, b) -> a checkType { _() } b checkType { _() } } foo { (a, b), (c, b) -> a checkType { _() } b checkType { _() } c checkType { _() } } }