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

13 lines
288 B
Kotlin
Vendored

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