We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3511e59 commit 3a7a92bCopy full SHA for 3a7a92b
test/files/run/t4124.check
@@ -0,0 +1,4 @@
1
+hi
2
3
+bye
4
test/files/run/t4124.scala
@@ -0,0 +1,24 @@
+import xml.Node
+
+object Test extends App {
+ val body: Node = <elem>hi</elem>
5
+ println ((body: AnyRef, "foo") match {
6
+ case (node: Node, "bar") => "bye"
7
+ case (ser: Serializable, "foo") => "hi"
8
+ })
9
10
+ println ((body, "foo") match {
11
12
13
14
15
16
+ case (node: Node, "foo") => "bye"
17
18
19
20
21
22
23
24
+}
0 commit comments