aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t5394.scala
blob: 5f649ee0a53a4cac703ca771ed51ebf5b2f1d6a3 (plain) (blame)
1
2
3
4
object Test extends dotty.runtime.LegacyApp {
  def f[T](l: List[T]): Int = l match { case x :: xs => f(xs) case Nil => 0 }
  f(List.fill(10000)(0))
}