mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
9 lines
217 B
Kotlin
Vendored
9 lines
217 B
Kotlin
Vendored
// "Create member function 'Foo.component3'" "true"
|
|
class Foo<T> {
|
|
operator fun component1(): Int { return 0 }
|
|
operator fun component2(): Int { return 0 }
|
|
}
|
|
fun foo() {
|
|
val (a, b, c) = Foo<caret><Int>()
|
|
}
|