From 6fc37a13242fc78d85138b32a803f8316a2b2040 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 24 May 2010 22:26:47 +0000 Subject: Fixed an xml issue arising from arrays no longe... Fixed an xml issue arising from arrays no longer being recognized as sequences. Review by dpp. --- test/files/run/nodebuffer-array.check | 3 +++ test/files/run/nodebuffer-array.scala | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/files/run/nodebuffer-array.check create mode 100644 test/files/run/nodebuffer-array.scala (limited to 'test/files/run') diff --git a/test/files/run/nodebuffer-array.check b/test/files/run/nodebuffer-array.check new file mode 100644 index 0000000000..49f8bfaf8d --- /dev/null +++ b/test/files/run/nodebuffer-array.check @@ -0,0 +1,3 @@ + + abc + diff --git a/test/files/run/nodebuffer-array.scala b/test/files/run/nodebuffer-array.scala new file mode 100644 index 0000000000..f9cfbc50df --- /dev/null +++ b/test/files/run/nodebuffer-array.scala @@ -0,0 +1,15 @@ +object Test { + + def f(s: String) = { + + { + for (item <- s split ',') yield + { item } + } + + } + + def main(args: Array[String]): Unit = { + println(f("a,b,c")) + } +} -- cgit v1.2.3