mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
11 lines
274 B
Plaintext
Vendored
11 lines
274 B
Plaintext
Vendored
// "Create member function 'Foo.iterator'" "true"
|
|
class Foo<T> {
|
|
operator fun iterator(): Iterator<T> {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
|
|
fun foo() {
|
|
for (i: Int in Foo<Int>()) { }
|
|
}
|