summaryrefslogblamecommitdiff
path: root/test/files/run/virtpatmat_tailcalls_verifyerror.scala
blob: 1ee613f09ee598510bdaa8ece49c93742ff80c6e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                  
// shouldn't result in a verify error when run...
object Test extends App {
  @annotation.tailrec
  final def test(meh: Boolean): Boolean = {
    Some("a") match {
      case x =>
        x match {
          case _ => if(meh) test(false) else false
        }
    }
  }
  println(test(true))
}