diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-05-26 22:11:37 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-05-26 22:11:37 +1000 |
commit | 7fbe4fe49c7c1b0cb3b667aa48678222b2ddbc46 (patch) | |
tree | de229c1e6136366434602ae358de0fe72a470daf /test/files/pos/t9321.scala | |
parent | bb302833c7bad6ff7591cdf6d10ec7ffdf683d6a (diff) | |
parent | 99fcdf758e5b52f77a138bc777692dd2461e0a9c (diff) | |
download | scala-7fbe4fe49c7c1b0cb3b667aa48678222b2ddbc46.tar.gz scala-7fbe4fe49c7c1b0cb3b667aa48678222b2ddbc46.tar.bz2 scala-7fbe4fe49c7c1b0cb3b667aa48678222b2ddbc46.zip |
Merge pull request #4512 from retronym/ticket/9321
SI-9321 Clarify spec for inheritance of qualified private
Diffstat (limited to 'test/files/pos/t9321.scala')
-rw-r--r-- | test/files/pos/t9321.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t9321.scala b/test/files/pos/t9321.scala new file mode 100644 index 0000000000..ed3a816656 --- /dev/null +++ b/test/files/pos/t9321.scala @@ -0,0 +1,10 @@ +object p { + trait A { + private[p] val qualifiedPrivateMember = 1 + } + + def useQualifiedPrivate(b: Mix) = + b.qualifiedPrivateMember // allowed +} + +trait Mix extends p.A |