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