diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-10 20:35:02 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-11 22:47:28 +0100 |
commit | 6a7d793388628d9e8d20c59cc327843f33615db0 (patch) | |
tree | fa14cbb835b4e662b87393bac01c90496a094211 /test/files/pos | |
parent | 2e8ede532a3af72abd22fc6c27af652c2a7206ae (diff) | |
download | scala-6a7d793388628d9e8d20c59cc327843f33615db0.tar.gz scala-6a7d793388628d9e8d20c59cc327843f33615db0.tar.bz2 scala-6a7d793388628d9e8d20c59cc327843f33615db0.zip |
SI-7091 Don't try to put a protected accessor in a package.
This shows up when a protected[pack] class has a constructor
with a default argument.
Regressed in f708b87 / SI-2296.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t7091.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/pos/t7091.scala b/test/files/pos/t7091.scala new file mode 100644 index 0000000000..72e81a2ea8 --- /dev/null +++ b/test/files/pos/t7091.scala @@ -0,0 +1,7 @@ +package p1.p2 + +protected[p2] class C(var x: Int = 0) + +protected[p2] trait T { + new C() +} |