summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-08 15:48:48 +0000
committerPaul Phillips <paulp@improving.org>2011-03-08 15:48:48 +0000
commit2333e9af28b5fcf68a2f4cc20b7f5ebb808b1acd (patch)
treea8c2ca12fec9e97fc3cafb090896750c5a0f50fa
parentcabd899188e7882bb17e0e72cc563b52caf48de3 (diff)
downloadscala-2333e9af28b5fcf68a2f4cc20b7f5ebb808b1acd.tar.gz
scala-2333e9af28b5fcf68a2f4cc20b7f5ebb808b1acd.tar.bz2
scala-2333e9af28b5fcf68a2f4cc20b7f5ebb808b1acd.zip
Added StringLike to the list of things the repl...
Added StringLike to the list of things the repl lets print themselves. No review.
-rw-r--r--src/library/scala/runtime/ScalaRunTime.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/runtime/ScalaRunTime.scala b/src/library/scala/runtime/ScalaRunTime.scala
index 8ca461d799..3168fedc40 100644
--- a/src/library/scala/runtime/ScalaRunTime.scala
+++ b/src/library/scala/runtime/ScalaRunTime.scala
@@ -11,7 +11,7 @@ package scala.runtime
import scala.reflect.ClassManifest
import scala.collection.{ Seq, IndexedSeq, TraversableView }
import scala.collection.mutable.WrappedArray
-import scala.collection.immutable.{ NumericRange, List, Stream, Nil, :: }
+import scala.collection.immutable.{ StringLike, NumericRange, List, Stream, Nil, :: }
import scala.collection.generic.{ Sorted }
import scala.xml.{ Node, MetaData }
import scala.util.control.ControlThrowable
@@ -272,8 +272,8 @@ object ScalaRunTime {
case _: Range | _: NumericRange[_] => true
// Sorted collections to the wrong thing (for us) on iteration - ticket #3493
case _: Sorted[_, _] => true
- // StringBuilder(a, b, c) is not so attractive
- case _: StringBuilder => true
+ // StringBuilder(a, b, c) and similar not so attractive
+ case _: StringLike[_] => true
// Don't want to evaluate any elements in a view
case _: TraversableView[_, _] => true
// Don't want to a) traverse infinity or b) be overly helpful with peoples' custom