summaryrefslogtreecommitdiff
path: root/test/files/pos/virtpatmat_binding_opt.scala
blob: 962e3d7dbef7347eaf6e86f5a08a0bdfef5c8a02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Test {
  def combine = this match {
    case that if that eq this => this // just return this
    case that: Test2 =>
      println(that)
      this
    case _ => error("meh")
  }
}

class Test2 extends Test