Permalink
Browse files

Test case closes SI-4124.

This looks like a job for... virtpatmat!
  • Loading branch information...
retronym committed May 12, 2012
1 parent 3511e59 commit 3a7a92bd9263a932c5a3f64307641b374923580a
Showing with 28 additions and 0 deletions.
  1. +4 −0 test/files/run/t4124.check
  2. +24 −0 test/files/run/t4124.scala
@@ -0,0 +1,4 @@
+hi
+hi
+bye
+bye
View
@@ -0,0 +1,24 @@
+import xml.Node
+
+object Test extends App {
+ val body: Node = <elem>hi</elem>
+ println ((body: AnyRef, "foo") match {
+ case (node: Node, "bar") => "bye"
+ case (ser: Serializable, "foo") => "hi"
+ })
+
+ println ((body, "foo") match {
+ case (node: Node, "bar") => "bye"
+ case (ser: Serializable, "foo") => "hi"
+ })
+
+ println ((body: AnyRef, "foo") match {
+ case (node: Node, "foo") => "bye"
+ case (ser: Serializable, "foo") => "hi"
+ })
+
+ println ((body: AnyRef, "foo") match {
+ case (node: Node, "foo") => "bye"
+ case (ser: Serializable, "foo") => "hi"
+ })
+}

0 comments on commit 3a7a92b

Please sign in to comment.