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

14 lines
316 B
Plaintext
Vendored

// "Create member function 'Foo.iterator'" "true"
class Foo<T> {
operator fun iterator(): Iterator<String> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun foo() {
for (i in Foo<Int>()) {
bar(i)
}
}
fun bar(i: String) { }