Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/next/createNextFromUsage2.kt.after
T
Alexey Sedunov 3ba776fffa Code Insight: Format generated declarations
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
2016-07-20 15:39:05 +03:00

16 lines
424 B
Plaintext
Vendored

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