aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-08 13:52:28 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-19 16:56:30 +0100
commit6a93dd0dea9833ecba70d09a414a650227c03fc9 (patch)
tree19ad202746282db3bf82685bd0522bd29fe584cd /tests
parentea407f143591aa9ffd0fd0f9a25a9ec9e812e76c (diff)
downloaddotty-6a93dd0dea9833ecba70d09a414a650227c03fc9.tar.gz
dotty-6a93dd0dea9833ecba70d09a414a650227c03fc9.tar.bz2
dotty-6a93dd0dea9833ecba70d09a414a650227c03fc9.zip
Copy access flags to derived definitions during desugaring
Previously, some definitions were too public, others too private.
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i997a.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/neg/i997a.scala b/tests/neg/i997a.scala
new file mode 100644
index 000000000..582c8d0e6
--- /dev/null
+++ b/tests/neg/i997a.scala
@@ -0,0 +1,19 @@
+class C {
+
+ class Super
+
+ object O {
+
+ private case class CC(x: Int)
+
+ private implicit class D(x: Int) extends Super
+ }
+
+ import O._
+
+ println(O.CC(1))
+
+ val s: Super = 1
+
+
+}