summaryrefslogtreecommitdiff
path: root/test/files/neg/bug3714-neg.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-26 06:00:20 +0000
committerPaul Phillips <paulp@improving.org>2010-10-26 06:00:20 +0000
commit6d22805793cd25427469cceb89258fdbca42630b (patch)
tree557d028059713104df1d15af87af17326d0943ab /test/files/neg/bug3714-neg.check
parentcab41b68581f32e56491b4bfdcbb931a4abe3689 (diff)
downloadscala-6d22805793cd25427469cceb89258fdbca42630b.tar.gz
scala-6d22805793cd25427469cceb89258fdbca42630b.tar.bz2
scala-6d22805793cd25427469cceb89258fdbca42630b.zip
Case accessors are always public else the patte...
Case accessors are always public else the pattern matcher goes south. A more discriminating fix may be possible at some point, but it looks to be an involved endeavor. Closes #3714, review by odersky.
Diffstat (limited to 'test/files/neg/bug3714-neg.check')
-rw-r--r--test/files/neg/bug3714-neg.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/bug3714-neg.check b/test/files/neg/bug3714-neg.check
new file mode 100644
index 0000000000..fab6623001
--- /dev/null
+++ b/test/files/neg/bug3714-neg.check
@@ -0,0 +1,13 @@
+bug3714-neg.scala:17: error: value break in class BreakImpl cannot be accessed in BreakImpl
+ Access to protected value break not permitted because
+ enclosing class object Test is not a subclass of
+ class BreakImpl where target is defined
+ case b: BreakImpl => b.break
+ ^
+bug3714-neg.scala:25: error: value break in class BreakImpl cannot be accessed in BreakImpl
+ Access to protected value break not permitted because
+ enclosing class object Test is not a subclass of
+ class BreakImpl where target is defined
+ case b: BreakImpl => b.break
+ ^
+two errors found