summaryrefslogtreecommitdiff
path: root/test/files/neg/t3871.check
blob: c9667abfb6be2b71ae97abae1cb5a45fc9654436 (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 variable foo not permitted because
 enclosing class Base is not a subclass of
 class Sub2 where target is defined
    s.foo = true
      ^
one error found