aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/tailcall/t1672.scala
blob: 9be5c60661450db008d8578a10000e104818d047 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test1672 {
  @annotation.tailrec
  def bar(x: Int)(y: Int) : Nothing = {
    try {
      throw new RuntimeException
    } catch {
      case _: Throwable => bar(x)(y)
    }
  }
}