summaryrefslogtreecommitdiff
path: root/test/files/neg/maxwarns.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2017-01-31 01:19:49 -0800
committerSom Snytt <som.snytt@gmail.com>2017-01-31 01:19:49 -0800
commit633e6effa306a3a5f10ca4de7b22f0db460a4499 (patch)
tree3cd2a04a2ef13df88a23d13c809321a8cde79161 /test/files/neg/maxwarns.check
parentb9d4089d19ead36d07c2d6cdda283c9b678d515e (diff)
downloadscala-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.check12
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