data class Pair(val a: A, val b: B) fun A.to(b: B) = Pair(this, b) // SIBLING: fun foo() { val (a, b) = if (true) { 1 + 1 1 to 2 } else { 2 to 3 } }