Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ public abstract class FList<T>() {
}
}
public fun plus(head: T): FList<T> = object : FList<T>() {
operator fun plus(head: T): FList<T> = object : FList<T>() {
override public val head: T
get() = head
@@ -33,7 +33,7 @@ public fun <T> emptyFList(): FList<T> = FList.emptyFList as FList<T>
public fun <T> FList<T>.reverse(where: FList<T> = emptyFList<T>()) : FList<T> =
if(empty) where else tail.reverse(where + head)
public fun <T> FList<T>.iterator(): Iterator<T> = object: Iterator<T> {
operator fun <T> FList<T>.iterator(): Iterator<T> = object: Iterator<T> {
private var cur: FList<T> = this@iterator
override public fun next(): T {
@@ -1,6 +1,6 @@
// KT-5869
fun <T> Iterator<T>.iterator(): Iterator<T> = this
operator fun <T> Iterator<T>.iterator(): Iterator<T> = this
fun box(): String {
val iterator = object : Iterator<Int> {