From 34d3f1cb95b1cc0fba242296026e546366c483d9 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 25 Feb 2011 19:46:52 +0000 Subject: Made mkString work correctly on views. about how to obtain a String and how not to. Closes #4297, no review. --- test/files/run/bug4297.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/run/bug4297.scala (limited to 'test') diff --git a/test/files/run/bug4297.scala b/test/files/run/bug4297.scala new file mode 100644 index 0000000000..7497dfe4c2 --- /dev/null +++ b/test/files/run/bug4297.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]): Unit = { + def f = List(1,2,3).view + assert(f.toString == "SeqView(...)") + assert(f.mkString == "123") + } +} -- cgit v1.2.3