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







                                                                             
                                           



                                                  
t5352.scala:11: error: type mismatch;
 found   : boop.Bar
 required: boop.BarF
    (which expands to)  AnyRef{def f(): Int}
  x = xs.head
         ^
t5352.scala:14: error: method f in class Bar1 cannot be accessed in boop.Bar1
 Access to protected method f not permitted because
 enclosing object boop is not a subclass of
 class Bar1 in object boop where target is defined
  (new Bar1).f
             ^
two errors found