mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
15 lines
323 B
Kotlin
Vendored
15 lines
323 B
Kotlin
Vendored
// "Create member function 'FooIterator.hasNext'" "true"
|
|
class FooIterator<T> {
|
|
operator fun next(): T {
|
|
throw Exception("not implemented")
|
|
}
|
|
}
|
|
class Foo<T> {
|
|
operator fun iterator(): FooIterator<T> {
|
|
throw Exception("not implemented")
|
|
}
|
|
}
|
|
fun foo() {
|
|
for (i in Foo<caret><Int>()) { }
|
|
}
|