summaryrefslogtreecommitdiff
path: root/test/files/neg/t5663-badwarneq.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/t5663-badwarneq.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/t5663-badwarneq.check')
-rw-r--r--test/files/neg/t5663-badwarneq.check5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/t5663-badwarneq.check b/test/files/neg/t5663-badwarneq.check
index 732e4f44d0..4b7795585b 100644
--- a/test/files/neg/t5663-badwarneq.check
+++ b/test/files/neg/t5663-badwarneq.check
@@ -25,6 +25,9 @@ t5663-badwarneq.scala:72: warning: ValueClass1 and Int are unrelated: they will
t5663-badwarneq.scala:74: warning: comparing values of types Int and ValueClass1 using `==' will always yield false
println(5 == new ValueClass1(5)) // bad
^
+t5663-badwarneq.scala:74: warning: Int and ValueClass1 are unrelated: they will never compare equal
+ println(5 == new ValueClass1(5)) // bad
+ ^
t5663-badwarneq.scala:78: warning: ValueClass2[String] and String are unrelated: they will never compare equal
println(new ValueClass2("abc") == "abc") // bad
^
@@ -38,5 +41,5 @@ t5663-badwarneq.scala:82: warning: comparing values of types ValueClass3 and Int
println(ValueClass3(5) == 5) // bad
^
error: No warnings can be incurred under -Xfatal-warnings.
-13 warnings found
+14 warnings found
one error found