summaryrefslogtreecommitdiff
path: root/test/files/pos/bug0646.scala
blob: 64214f65b1ac71e9ca5c9dcc977f06083c9269c2 (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 @ <title>Blabla</title> => t
  }

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

}