summaryrefslogblamecommitdiff
path: root/test/files/neg/t1672b.scala
blob: 7d02ddc71007b8326b03f493c08aefa3e154810f (plain) (tree)








































                                   
object Test {
  @annotation.tailrec
  def bar : Nothing = {
    try {
      throw new RuntimeException
    } catch {
      case _: Throwable => bar
    } finally {
      bar
    }
  }

  @annotation.tailrec
  def baz : Nothing = {
    try {
      throw new RuntimeException
    } catch {
      case _: Throwable => baz
    } finally {
      ???
    }
  }

  @annotation.tailrec
  def boz : Nothing = {
    try {
      throw new RuntimeException
    } catch {
      case _: Throwable => boz; ???
    }
  }

  @annotation.tailrec
  def bez : Nothing = {
    try {
      bez
    } finally {
      ???
    }
  }
}