data class A(x: Int, y: String) fun foo(a: A) { a.component1() a.component2() }