Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/hasNext/beforeCreateHasNextFromUsage2.kt

15 lines
286 B
Kotlin

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