package a class MyPair { operator fun component1() = 1 operator fun component2() = 2 } fun main(args: Array) { val p = MyPair() val (a, b) = p }