Tests: drop EcmaVersions usage, add test inheritFromJetIterator.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
Pavel V. Talanov
2012-08-13 16:04:53 +04:00
parent 0a002bcc53
commit 6febebc7b3
2 changed files with 23 additions and 8 deletions
@@ -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