summaryrefslogtreecommitdiff
path: root/test/files/neg/override.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/override.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/override.check')
-rw-r--r--test/files/neg/override.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/override.check b/test/files/neg/override.check
index fc152cb3b1..8be98bf4d0 100644
--- a/test/files/neg/override.check
+++ b/test/files/neg/override.check
@@ -1,5 +1,5 @@
override.scala:9: error: overriding type T in trait A with bounds >: Int <: Int;
type T in trait B with bounds >: String <: String has incompatible type
- lazy val x : A with B = x
+ lazy val x : A with B = {println(""); x}
^
one error found