4d9b19da82
#KT-18539 Fixed
24 lines
515 B
Plaintext
Vendored
24 lines
515 B
Plaintext
Vendored
// "Create extension function 'Any.component2'" "true"
|
|
// WITH_RUNTIME
|
|
class FooIterator<T> {
|
|
operator fun hasNext(): Boolean { return false }
|
|
operator fun next(): Any {
|
|
TODO("not implemented")
|
|
}
|
|
}
|
|
class Foo<T> {
|
|
operator fun iterator(): FooIterator<String> {
|
|
TODO("not implemented")
|
|
}
|
|
}
|
|
operator fun Any.component1(): Int {
|
|
return 0
|
|
}
|
|
fun foo() {
|
|
for ((i: Int, j: Int) in Foo<Int>()) { }
|
|
}
|
|
|
|
private operator fun Any.component2(): Int {
|
|
TODO("Not yet implemented")
|
|
}
|