summaryrefslogblamecommitdiff
path: root/test/files/neg/t1286.check
blob: c937fb9cf1c59a6e2a0cc2c68116f291e8021ded (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                       
                                          

           
                                                                                       
                                          


                        
a.scala:1: error: Companions 'object Foo' and 'trait Foo' must be defined in same file:
  Found in t1286/b.scala and t1286/a.scala
trait Foo {
      ^
b.scala:1: error: Companions 'trait Foo' and 'object Foo' must be defined in same file:
  Found in t1286/a.scala and t1286/b.scala
object Foo extends Foo {
       ^
two errors found