trait T { fun component1(): Int } data class A(val x: Int) : T