a1e86e8bfa
(cherry picked from commit a51d3fc)
13 lines
300 B
Kotlin
Vendored
13 lines
300 B
Kotlin
Vendored
// "Create member function 'FooIterator.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>()) { }
|
|
}
|