diff options
Diffstat (limited to 'tests/run/t5394.scala')
-rw-r--r-- | tests/run/t5394.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/run/t5394.scala b/tests/run/t5394.scala new file mode 100644 index 000000000..5f649ee0a --- /dev/null +++ b/tests/run/t5394.scala @@ -0,0 +1,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)) +} |