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