15 lines
309 B
Kotlin
15 lines
309 B
Kotlin
// "Create function 'hasNext' from usage" "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>()) { }
|
|
}
|