13 lines
389 B
Plaintext
Vendored
13 lines
389 B
Plaintext
Vendored
// "Create member function 'component3'" "true"
|
|
class Foo<T> {
|
|
operator fun component1(): Int { return 0 }
|
|
operator fun component2(): Int { return 0 }
|
|
|
|
operator fun component3(): Any {
|
|
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
fun foo() {
|
|
val (a, b, c) = Foo<Int>()
|
|
}
|