summaryrefslogtreecommitdiff
path: root/test/files/pos/t0646.scala
blob: a56e85722362093edea088e1a54a41bb9e1ce48e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 @ Seq(<title>Blabla</title>) => t
  }

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

}