summaryrefslogtreecommitdiff
path: root/test/files/run/nodebuffer-array.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-24 22:26:47 +0000
committerPaul Phillips <paulp@improving.org>2010-05-24 22:26:47 +0000
commit6fc37a13242fc78d85138b32a803f8316a2b2040 (patch)
tree0c21f9606ac9a7b692cec94fb500d9269a780eaf /test/files/run/nodebuffer-array.scala
parenta3c413084cccde5c7a3dec510971f9ef8fbf628f (diff)
downloadscala-6fc37a13242fc78d85138b32a803f8316a2b2040.tar.gz
scala-6fc37a13242fc78d85138b32a803f8316a2b2040.tar.bz2
scala-6fc37a13242fc78d85138b32a803f8316a2b2040.zip
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.
Diffstat (limited to 'test/files/run/nodebuffer-array.scala')
-rw-r--r--test/files/run/nodebuffer-array.scala15
1 files changed, 15 insertions, 0 deletions
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) = {
+ <entry>
+ {
+ for (item <- s split ',') yield
+ <elem>{ item }</elem>
+ }
+ </entry>
+ }
+
+ def main(args: Array[String]): Unit = {
+ println(f("a,b,c"))
+ }
+}