summaryrefslogtreecommitdiff
path: root/test/files/run/xmlParsing.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/xmlParsing.scala')
-rw-r--r--test/files/run/xmlParsing.scala11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/files/run/xmlParsing.scala b/test/files/run/xmlParsing.scala
index d602d9e0bc..beedf44b62 100644
--- a/test/files/run/xmlParsing.scala
+++ b/test/files/run/xmlParsing.scala
@@ -37,6 +37,15 @@ object Test with Application {
val ent = <foo>
hello &nbsp; character entities!
welcome &#0160; unicode characters!
- </foo>
+ </foo>;
+
+
+ val foo = <a/><b/><c/>;
+
+ val foo2 = foo match {
+ case <a/><b/> => 1
+ case <a></a><b></b><c></c> => 2
+ case Seq(Elem("a"),Elem("b"),Elem("c")) => 3
+ };
}