summaryrefslogtreecommitdiff
path: root/test/files/pos/bug646.scala
blob: d5d3471731a2084536847c64afcc314209c92171 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
object xfor {

  import scala.xml.NodeSeq

    val books =
    <bks>
      <title>Blabla</title>
      <title>Blubabla</title>
      <title>Baaaaaaalabla</title>
    </bks>;

  new NodeSeq { val theSeq = books.child } match {
    case t @ <title>Blabla</title> => t
  }

}