aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/privates.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-01 18:38:31 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-01 18:38:56 +0200
commitd9c215757f49d7984889e8e695828f71f685f163 (patch)
tree19ccea9593192bcc56ffd61e7d16350e41469f87 /tests/pos/privates.scala
parenta263b5f3aaabe96e7ad238cb18e8f9b98d287ffc (diff)
downloaddotty-d9c215757f49d7984889e8e695828f71f685f163.tar.gz
dotty-d9c215757f49d7984889e8e695828f71f685f163.tar.bz2
dotty-d9c215757f49d7984889e8e695828f71f685f163.zip
New miniphase: ExpandPrivate
A late miniphase which resets private flag of all members that are not accessed from within same class. Replaces logic in RefChecks. Doing this late has two advantages - we can use name expansion, because references are symbolic, so the names of symbols and references to them do not need to correspond anymore. - we can automatically correct for symbols moved in earlier phases (e.g. lifted out by LambdaLift).
Diffstat (limited to 'tests/pos/privates.scala')
-rw-r--r--tests/pos/privates.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pos/privates.scala b/tests/pos/privates.scala
index edaa10cb6..a0099e03e 100644
--- a/tests/pos/privates.scala
+++ b/tests/pos/privates.scala
@@ -6,4 +6,8 @@ trait Test {
private def bar() = foo()
+ class Inner {
+ foo()
+ }
+
}