From 29fa1c9c11bd4157f67a336f267eeb7c41e5b81e Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 17 Jun 2011 15:23:42 +0400 Subject: [PATCH] toString() extension added to the standard library --- idea/src/jet/Library.jet | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idea/src/jet/Library.jet b/idea/src/jet/Library.jet index 28e0610879e..f58492cf2dd 100644 --- a/idea/src/jet/Library.jet +++ b/idea/src/jet/Library.jet @@ -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 { fun next() : T abstract val hasNext : Boolean