blob: f8abfeb7139e07e39b85d3ba282d9004b439f1e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
object Test { import scala.xml.{Node,HasKeyValue}
def domatch(x:Node): Node = {
val hasBar = new HasKeyValue("bar")
x match {
case Node("foo", hasBar(z), _*) => z
case _ => null
}
}
}
|