Skip to content

Instantly share code, notes, and snippets.

@soc
Created May 12, 2012 15:01
Show Gist options
  • Select an option

  • Save soc/2667019 to your computer and use it in GitHub Desktop.

Select an option

Save soc/2667019 to your computer and use it in GitHub Desktop.
% test/partest test/files/run/t5394.scala
Testing individual files
No such file or class on classpath: Test
testing: [...]/files/run/t5394.scala [FAILED]
1 of 1 tests failed (elapsed time: 00:00:03)
test/partest test/files/run/t5394.scala 5,87s user 0,14s system 169% cpu 3,537 total
————————t5394.scala——————————————————————
object t5394 extends App {
def f[T](l: List[T]): Int = l match { case x :: xs => f(xs) case Nil => 0 }
f(List.fill(10000)(0))
println("No StackOverflowError!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment