diff options
author | Som Snytt <som.snytt@gmail.com> | 2017-01-31 01:19:49 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-01-31 01:19:49 -0800 |
commit | 633e6effa306a3a5f10ca4de7b22f0db460a4499 (patch) | |
tree | 3cd2a04a2ef13df88a23d13c809321a8cde79161 /test/files/neg/maxwarns.check | |
parent | b9d4089d19ead36d07c2d6cdda283c9b678d515e (diff) | |
download | scala-633e6effa306a3a5f10ca4de7b22f0db460a4499.tar.gz scala-633e6effa306a3a5f10ca4de7b22f0db460a4499.tar.bz2 scala-633e6effa306a3a5f10ca4de7b22f0db460a4499.zip |
SI-9729 -Xmaxerrs to limit messages
Since 2.7.2, console reporter has limited error messages to
a fixed 100. Use `-Xmaxerrs -Xmaxwarns` as from `javac` to configure.
Diffstat (limited to 'test/files/neg/maxwarns.check')
-rw-r--r-- | test/files/neg/maxwarns.check | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/maxwarns.check b/test/files/neg/maxwarns.check new file mode 100644 index 0000000000..f4c8d907bd --- /dev/null +++ b/test/files/neg/maxwarns.check @@ -0,0 +1,12 @@ +maxwarns.scala:12: warning: method x in object X is deprecated (since forever): just to annoy people + def a = x + ^ +maxwarns.scala:14: warning: method x in object X is deprecated (since forever): just to annoy people + def b = x + ^ +maxwarns.scala:16: warning: method x in object X is deprecated (since forever): just to annoy people + def c = x + ^ +error: No warnings can be incurred under -Xfatal-warnings. +5 warnings found +one error found |