blob: 9b0ede1c6d4b3d8b62a8db2edc7b97950317a414 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
package-ob-case.scala:3: warning: it is not recommended to define classes/objects inside of package objects.
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.
two warnings found
one error found
|