summaryrefslogtreecommitdiff
path: root/test/files/neg/package-ob-case.check
blob: 9031ad13e7f356f8e59acc925f2611d22230a642 (plain) (blame)
1
2
3
4
5
6
7
8
9
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: error: implementation restriction: package object foo cannot contain case class X. Instead, class X should be placed directly in package foo.
    case class X(z: Int) { }
               ^
one warning found
one error found