Made the empty string print as "" in the repl instead of as nothing.
This after being misled one too many times by a variation of this: scala> List[String]() res1: List[String] = List() scala> List[String]("") res2: List[String] = List() No review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24041 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
f45fae2e96
commit
1e2ef90b5f
|
@ -289,6 +289,7 @@ object ScalaRunTime {
|
|||
// The recursively applied attempt to prettify Array printing
|
||||
def inner(arg: Any): String = arg match {
|
||||
case null => "null"
|
||||
case "" => "\"\""
|
||||
case x if useOwnToString(x) => x.toString
|
||||
case x: AnyRef if isArray(x) => WrappedArray make x take maxElements map inner mkString ("Array(", ", ", ")")
|
||||
case x: collection.Map[_, _] => x take maxElements map mapInner mkString (x.stringPrefix + "(", ", ", ")")
|
||||
|
|
Loading…
Reference in New Issue