Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/next/beforeCreateNextFromUsage2.kt

13 lines
263 B
Kotlin

// "Create function 'next'" "true"
class FooIterator<T> {
fun hasNext(): Boolean { return false }
}
class Foo<T> {
fun iterator(): FooIterator<T> {
throw Exception("not implemented")
}
}
fun foo() {
for (i: Int in Foo<caret><Int>()) { }
}