summaryrefslogtreecommitdiff
path: root/test/files/neg/bug1286.check
blob: 734964e9cf4ff1c6b4230ff25c3aa5c040a7c054 (plain) (blame)
1
2
3
4
5
6
7
a.scala:1: error: Companions 'object Foo' and 'trait Foo' must be defined in same file
trait Foo {
      ^
b.scala:1: error: Companions 'trait Foo' and 'object Foo' must be defined in same file
object Foo extends Foo {
       ^
two errors found