summaryrefslogblamecommitdiff
path: root/test/files/pos/caseaccs.scala
blob: 7f2c9ef2a6ec9150c523329967c66b007a9ed8e5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
            
                                            








                                                 
class Test {
  case class Foo(x: Int, private var y: Int)
}

object Test {
  val test = new Test
  val x = test.Foo(1, 2)
  x match {
    case test.Foo(x, y) => println(x); println(y)
  }
}