summaryrefslogtreecommitdiff
path: root/test/files/neg/t3871.check
blob: b920357ee6942f705f6809011bf5f041f067ff20 (plain) (blame)
1
2
3
4
5
6
7
t3871.scala:4: error: variable foo in class Sub2 cannot be accessed in Sub2
 Access to protected method foo not permitted because
 enclosing class Base is not a subclass of
 class Sub2 where target is defined
    s.foo = true
      ^
one error found