Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/component/createComponentFromUsage2.kt.after
2016-07-20 15:39:19 +03:00

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>()
}