diff options
Diffstat (limited to 'test/files/run/virtpatmat_tailcalls_verifyerror.scala')
-rw-r--r-- | test/files/run/virtpatmat_tailcalls_verifyerror.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/virtpatmat_tailcalls_verifyerror.scala b/test/files/run/virtpatmat_tailcalls_verifyerror.scala new file mode 100644 index 0000000000..1ee613f09e --- /dev/null +++ b/test/files/run/virtpatmat_tailcalls_verifyerror.scala @@ -0,0 +1,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)) +}
\ No newline at end of file |