diff options
Diffstat (limited to 'tests/untried/neg/t3714-neg.check')
-rw-r--r-- | tests/untried/neg/t3714-neg.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t3714-neg.check b/tests/untried/neg/t3714-neg.check new file mode 100644 index 000000000..4f2971696 --- /dev/null +++ b/tests/untried/neg/t3714-neg.check @@ -0,0 +1,13 @@ +t3714-neg.scala:17: error: value break in class BreakImpl cannot be accessed in BreakImpl + Access to protected value break not permitted because + enclosing object Test is not a subclass of + class BreakImpl where target is defined + case b: BreakImpl => b.break + ^ +t3714-neg.scala:25: error: value break in class BreakImpl cannot be accessed in BreakImpl + Access to protected value break not permitted because + enclosing object Test is not a subclass of + class BreakImpl where target is defined + case b: BreakImpl => b.break + ^ +two errors found |