diff options
Diffstat (limited to 'tests/untried/neg/t3871.check')
-rw-r--r-- | tests/untried/neg/t3871.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t3871.check b/tests/untried/neg/t3871.check new file mode 100644 index 000000000..b920357ee --- /dev/null +++ b/tests/untried/neg/t3871.check @@ -0,0 +1,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 |