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

15 lines
311 B
Kotlin
Vendored

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