Add toString() to Any, fix all tests
#KT-4517 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)"
|
||||
}
|
||||
Reference in New Issue
Block a user