From 6a7d793388628d9e8d20c59cc327843f33615db0 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Sun, 10 Feb 2013 20:35:02 +0100 Subject: 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. --- test/files/pos/t7091.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/pos/t7091.scala (limited to 'test/files/pos/t7091.scala') 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() +} -- cgit v1.2.3