blob: ed3de2597888bbf672c89197e549ecea580f3955 [file] [log] [blame]
class S(val a: String, val b: String) {
operator fun component1() : String = a
operator fun component2() : String = b
}
operator fun S.component3() = ((a + b) as java.lang.String).substring(2)
class Tester() {
fun box() : String {
val (o,k,ok,ok2) = S("O","K")
return o + k + ok + ok2
}
operator fun S.component4() = ((a + b) as java.lang.String).substring(2)
}
fun box() = Tester().box()
// 1 NEW S