diff options
Diffstat (limited to 'tests/untried/neg/t7859/B_2.scala')
-rw-r--r-- | tests/untried/neg/t7859/B_2.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t7859/B_2.scala b/tests/untried/neg/t7859/B_2.scala new file mode 100644 index 000000000..2e0556bc7 --- /dev/null +++ b/tests/untried/neg/t7859/B_2.scala @@ -0,0 +1,9 @@ +class C(private val x: Any) extends AnyVal + +// Checking that makeNotPrivate(paramAccessor) doesn't make this visible during typer. +// The output is identical with/without `extends AnyVal`. +object Test { + new p1.A(x).x + new B(x).x + new C(x).x +} |