aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1307.scala
blob: 1dd922321fcda725eab71016475971cf2e867757 (plain) (blame)
1
2
3
4
5
6
7
class Term[A]
class Number(val n: Int) extends Term[Int]
object Test {
  def f[B](t: Term[B]): B = t match {
    case y: Number => y.n
  }
}