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