summaryrefslogtreecommitdiff
path: root/test/files/neg/t6120.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-26 18:24:52 -0700
committerPaul Phillips <paulp@improving.org>2013-09-27 09:19:30 -0700
commit343127958ce708cab7bcab7acf344748567bd310 (patch)
tree4cb847784db29e8b643a251768f910d7c0145906 /test/files/neg/t6120.check
parent1a3c16fd36407bb2308bbb84739601544ac4a2e5 (diff)
downloadscala-343127958ce708cab7bcab7acf344748567bd310.tar.gz
scala-343127958ce708cab7bcab7acf344748567bd310.tar.bz2
scala-343127958ce708cab7bcab7acf344748567bd310.zip
SI-6120 multiple warnings at same position.
An error suppresses all further warnings at the same position, but multiple warnings can be heard.
Diffstat (limited to 'test/files/neg/t6120.check')
-rw-r--r--test/files/neg/t6120.check20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/neg/t6120.check b/test/files/neg/t6120.check
new file mode 100644
index 0000000000..a7d17e29cf
--- /dev/null
+++ b/test/files/neg/t6120.check
@@ -0,0 +1,20 @@
+t6120.scala:5: warning: postfix operator bippy should be enabled
+by making the implicit value scala.language.postfixOps visible.
+This can be achieved by adding the import clause 'import scala.language.postfixOps'
+or by setting the compiler option -language:postfixOps.
+See the Scala docs for value scala.language.postfixOps for a discussion
+why the feature should be explicitly enabled.
+ def f = null == null bippy
+ ^
+t6120.scala:5: warning: method bippy in class BooleanOps is deprecated: bobo
+ def f = null == null bippy
+ ^
+t6120.scala:5: warning: comparing values of types Null and Null using `==' will always yield true
+ def f = null == null bippy
+ ^
+t6120.scala:6: warning: method bippy in class BooleanOps is deprecated: bobo
+ def g = true.bippy
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+four warnings found
+one error found