summaryrefslogblamecommitdiff
path: root/test/files/neg/t4879.scala
blob: 7d6561e9e091a2d3b2eb8ee04372280b8b663130 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                              
case class C(d: Double) { }
case class D[T, U, V](bingo: Int, donkey: String, private val vegas: Set[A])(jehovah: Int) { }

class A {
  def f = (new C(5)) match {
    case C  => true
    case _  => false
  }
  def g[T, U, V](x: D[T, U, V]) = x match {
    case D  => true
    case _  => false
  }
}