toString() extension added to the standard library

This commit is contained in:
Andrey Breslav
2011-06-17 15:23:42 +04:00
parent 5968740638
commit 29fa1c9c11
+3
View File
@@ -10,6 +10,9 @@ namespace typeinfo {
// Can't write a body due to a bootstrapping problem (see JET-74)
fun Any?.equals(other : Any?) : Boolean// = this === other
// Returns "null" for null
fun Any?.toString() : String// = this === other
class Iterator<out T> {
fun next() : T
abstract val hasNext : Boolean