mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
12 lines
372 B
Plaintext
Vendored
12 lines
372 B
Plaintext
Vendored
// "Create member function 'Foo.component3'" "true"
|
|
class Foo<T> {
|
|
operator fun component1(): Int { return 0 }
|
|
operator fun component2(): Int { return 0 }
|
|
operator fun component3(): String {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
fun foo() {
|
|
val (a, b, c: String) = Foo<Int>()
|
|
}
|