mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
13 lines
355 B
Kotlin
13 lines
355 B
Kotlin
// "Create function 'component3'" "true"
|
|
class Foo<T> {
|
|
fun component1(): Int { return 0 }
|
|
fun component2(): Int { return 0 }
|
|
|
|
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>()
|
|
}
|