summaryrefslogtreecommitdiff
path: root/test/files/neg/t6276.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-09-09 16:59:43 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-09-09 18:20:01 +0200
commit24b0711f01dcb410ffd0454881f7a96073f92e16 (patch)
treeda48f345062d67de9a6a344db556253d1d864bbc /test/files/neg/t6276.check
parentadf2d3632b07eef4fc2303aef994e66584a73f49 (diff)
downloadscala-24b0711f01dcb410ffd0454881f7a96073f92e16.tar.gz
scala-24b0711f01dcb410ffd0454881f7a96073f92e16.tar.bz2
scala-24b0711f01dcb410ffd0454881f7a96073f92e16.zip
SI-6276 Warn on def or val that trivially loops infinitely
Diffstat (limited to 'test/files/neg/t6276.check')
-rw-r--r--test/files/neg/t6276.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t6276.check b/test/files/neg/t6276.check
new file mode 100644
index 0000000000..8bd92cf293
--- /dev/null
+++ b/test/files/neg/t6276.check
@@ -0,0 +1,13 @@
+t6276.scala:4: error: method a does nothing other than call itself recursively
+ def a: Any = a // warn
+ ^
+t6276.scala:5: error: value b does nothing other than call itself recursively
+ val b: Any = b // warn
+ ^
+t6276.scala:10: error: method a does nothing other than call itself recursively
+ def a: Any = a // warn
+ ^
+t6276.scala:19: error: method a does nothing other than call itself recursively
+ def a = a // warn
+ ^
+four errors found