Files
kotlin-fork/idea/testData/quickfix/createFromUsage/next/beforeCreateNextFromUsage2.kt
T

13 lines
274 B
Kotlin

// "Create function 'next' from usage" "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>()) { }
}