Tests: drop EcmaVersions usage, add test inheritFromJetIterator.
Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
class TabIterator : Iterator<Any?> {
|
||||
override val hasNext:Boolean
|
||||
get() = false
|
||||
|
||||
override fun next():Any? {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = !TabIterator().hasNext
|
||||
Reference in New Issue
Block a user