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

16 lines
443 B
Plaintext
Vendored

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