Files
kotlin-fork/idea/testData/quickfix/createFromUsage/component/afterCreateComponentFromUsage1.kt
T
2013-05-12 23:50:36 -04:00

12 lines
341 B
Kotlin

// "Create method 'component3' from usage" "true"
class Foo<T> {
fun component1(): Int { return 0 }
fun component2(): Int { return 0 }
fun component3(): Any {
throw Exception("not implemented") //To change body of created methods use File | Settings | File Templates.
}
}
fun foo() {
val (a, b, c) = Foo<Int>()
}