diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-06-17 11:47:11 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-06-17 11:55:12 +0200 |
commit | 2d3b6bd321724c565fd458a2bbffb4ad211c54ff (patch) | |
tree | d512a70ac2148ebec4b9528852357f6dacebd8ab /test/files/neg/t5617.check | |
parent | 277dc7cf43566f8294bde4143107d9bfaa59e8e3 (diff) | |
download | scala-2d3b6bd321724c565fd458a2bbffb4ad211c54ff.tar.gz scala-2d3b6bd321724c565fd458a2bbffb4ad211c54ff.tar.bz2 scala-2d3b6bd321724c565fd458a2bbffb4ad211c54ff.zip |
SI-5617 Better error message for "x overrides nothing".
"It looks like you're trying to override a method", notes Clippy.
Diffstat (limited to 'test/files/neg/t5617.check')
-rw-r--r-- | test/files/neg/t5617.check | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t5617.check b/test/files/neg/t5617.check new file mode 100644 index 0000000000..79cc3a1e32 --- /dev/null +++ b/test/files/neg/t5617.check @@ -0,0 +1,8 @@ +t5617.scala:12: error: method foo overrides nothing. +Note: the super classes of trait C contain the following, non final members named foo: +def foo(u: Unit): Int +def foo(x: Boolean): Int +def foo(i: Int)(b: String): Int + override def foo(s: String): Int + ^ +one error found |