summaryrefslogtreecommitdiff
path: root/test/files/neg/package-ob-case.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/package-ob-case.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/package-ob-case.check')
-rw-r--r--test/files/neg/package-ob-case.check5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/package-ob-case.check b/test/files/neg/package-ob-case.check
index 063a120db1..9b0ede1c6d 100644
--- a/test/files/neg/package-ob-case.check
+++ b/test/files/neg/package-ob-case.check
@@ -2,6 +2,9 @@ package-ob-case.scala:3: warning: it is not recommended to define classes/object
If possible, define class X in package foo instead.
case class X(z: Int) { }
^
+package-ob-case.scala:3: warning: class X should be placed directly in package foo instead of package object foo. Under some circumstances companion objects and case classes in package objects can fail to recompile. See https://issues.scala-lang.org/browse/SI-5954.
+ case class X(z: Int) { }
+ ^
error: No warnings can be incurred under -Xfatal-warnings.
-one warning found
+two warnings found
one error found