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

15 lines
298 B
Kotlin

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