summaryrefslogblamecommitdiff
path: root/test/files/neg/anyval-anyref-parent.check
blob: be895867fff8eae1ae53c04a1e77798ce57f030d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                                                    










                                                                            
anyval-anyref-parent.scala:5: error: Any does not have a constructor
class Bar1 extends Any      // fail
           ^
anyval-anyref-parent.scala:9: error: illegal inheritance; superclass Any
 is not a subclass of the superclass Object
 of the mixin trait Immutable
trait Foo4 extends Any with Immutable // fail
                            ^
anyval-anyref-parent.scala:10: error: illegal inheritance; superclass AnyVal
 is not a subclass of the superclass Object
 of the mixin trait Immutable
trait Foo5 extends AnyVal with Immutable   // fail
                               ^
three errors found