mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
16 lines
443 B
Plaintext
Vendored
16 lines
443 B
Plaintext
Vendored
// "Create member function 'FooIterator.next'" "true"
|
|
class FooIterator<T> {
|
|
operator fun hasNext(): Boolean { return false }
|
|
operator fun next(): Int {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
class Foo<T> {
|
|
operator fun iterator(): FooIterator<String> {
|
|
throw Exception("not implemented")
|
|
}
|
|
}
|
|
fun foo() {
|
|
for (i: Int in Foo<Int>()) { }
|
|
}
|