aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/virtpatmat_infer_single_1.scala
blob: 0e2a7817b8b4be784c2b74c6a55e0095e3d1d43e (plain) (blame)
1
2
3
4
5
6
7
case class TypeBounds(a: Type, b: Type)
class Type {
  def bounds: TypeBounds = bounds match {
    case TypeBounds(_: this.type, _: this.type) => TypeBounds(this, this)
    case oftp                                   => oftp
  }
}