diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-06-27 16:18:56 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-06-27 16:18:56 +0200 |
commit | 03af96588cbab178d4520e7604319fd5a52ddb24 (patch) | |
tree | 95d759126288315f403e421199901f1f5262f809 /test/files/neg/tailrec-4.check | |
parent | 6887029f100e2c3a90534768da074472f39cf14f (diff) | |
parent | fbfce33cb03bc2b41dd0f46fa9f4630036b4f2ca (diff) | |
download | scala-03af96588cbab178d4520e7604319fd5a52ddb24.tar.gz scala-03af96588cbab178d4520e7604319fd5a52ddb24.tar.bz2 scala-03af96588cbab178d4520e7604319fd5a52ddb24.zip |
Merge remote-tracking branch 'origin/2.11.x' into merge/2.11.x-2.12.x-20140627
Diffstat (limited to 'test/files/neg/tailrec-4.check')
-rw-r--r-- | test/files/neg/tailrec-4.check | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/tailrec-4.check b/test/files/neg/tailrec-4.check new file mode 100644 index 0000000000..3ec3274478 --- /dev/null +++ b/test/files/neg/tailrec-4.check @@ -0,0 +1,16 @@ +tailrec-4.scala:6: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position + @tailrec def foo: Int = foo + 1 + ^ +tailrec-4.scala:11: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position + @tailrec def foo: Int = foo + 1 + ^ +tailrec-4.scala:17: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position + @tailrec def foo: Int = foo + 1 + ^ +tailrec-4.scala:23: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position + @tailrec def foo: Int = foo + 1 + ^ +tailrec-4.scala:31: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position + @tailrec def foo: Int = foo + 1 + ^ +5 errors found |