summaryrefslogtreecommitdiff
path: root/test/pending/pos/t0576.scala
blob: 669806826d31ec7256dab880bf30100aed6d5795 (plain) (blame)
1
2
3
4
5
6
7
8
9
class Test {
  new Object { self =>
    def f(other: Any): Boolean =
      other match {
        case that: self.type => true
        case _ => false
      }
  }
}