1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
15 lines
352 B
Kotlin
15 lines
352 B
Kotlin
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS
|
|
|
|
class MyIterator<T>(val v: T): Iterator<T> {
|
|
override fun next(): T = v
|
|
override fun hasNext(): Boolean = true
|
|
|
|
public fun remove() {}
|
|
}
|
|
|
|
fun box(): String {
|
|
(MyIterator<String>("") as java.util.Iterator<String>).remove()
|
|
return "OK"
|
|
}
|