4d9b19da82
#KT-18539 Fixed
16 lines
364 B
Plaintext
Vendored
16 lines
364 B
Plaintext
Vendored
// "Create member function 'FooIterator.next'" "true"
|
|
class FooIterator<T> {
|
|
operator fun hasNext(): Boolean { return false }
|
|
operator fun next(): T {
|
|
TODO("Not yet implemented")
|
|
}
|
|
}
|
|
class Foo<T> {
|
|
operator fun iterator(): FooIterator<T> {
|
|
throw Exception("not implemented")
|
|
}
|
|
}
|
|
fun foo() {
|
|
for (i: Int in Foo<Int>()) { }
|
|
}
|