Add toString() to Any, fix all tests

#KT-4517 Fixed
This commit is contained in:
Alexander Udalov
2014-02-06 23:43:12 +04:00
parent 6127d53eac
commit 3dcd85bdb4
55 changed files with 110 additions and 72 deletions
+1 -1
View File
@@ -51,5 +51,5 @@ public class StringBuilder() : Appendable {
//TODO
//override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = js.noImpl
public fun append(obj: Any?): StringBuilder = js.noImpl
public fun toString(): String = js.noImpl
override fun toString(): String = js.noImpl
}
+1 -1
View File
@@ -49,7 +49,7 @@ public abstract class AbstractList<E>() : AbstractCollection<E>(), MutableList<E
override fun equals(other: Any?): Boolean = js.noImpl
fun toString(): String = js.noImpl
override fun toString(): String = js.noImpl
}
library
+2 -3
View File
@@ -8,8 +8,7 @@ public class Pair<A, B> (
public fun component1(): A = first
public fun component2(): B = second
public fun toString(): String = "($first, $second)"
override fun toString(): String = "($first, $second)"
}
public class Triple<A, B, C> (
@@ -21,5 +20,5 @@ public class Triple<A, B, C> (
public fun component2(): B = second
public fun component3(): C = third
public fun toString(): String = "($first, $second, $third)"
override fun toString(): String = "($first, $second, $third)"
}