Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/hasNext/createHasNextFromUsage2.kt
2016-07-20 15:39:19 +03:00

15 lines
323 B
Kotlin
Vendored

// "Create member function 'FooIterator.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>()) { }
}