Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/component/afterCreateComponentFromUsage2.kt

13 lines
366 B
Kotlin

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