Fix compiler tests

This commit is contained in:
Yan Zhulanow
2015-09-21 23:40:34 +03:00
parent 35362a0f3b
commit 6db9344659
319 changed files with 1034 additions and 1032 deletions
@@ -8,12 +8,12 @@ fun <T> java.util.Enumeration<T>.iterator() = object: Iterator<T> {
interface MyIterator<T> {
fun hasNext() : Boolean
operator fun hasNext() : Boolean
fun next() : T
operator fun next() : T
}
fun <T : Any> T?.iterator() = object : MyIterator<T> {
operator fun <T : Any> T?.iterator() = object : MyIterator<T> {
var hasNext = this@iterator != null
private set
override fun hasNext() = hasNext