aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t3118.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t3118.scala')
-rw-r--r--tests/untried/neg/t3118.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/neg/t3118.scala b/tests/untried/neg/t3118.scala
new file mode 100644
index 000000000..9be24c1ed
--- /dev/null
+++ b/tests/untried/neg/t3118.scala
@@ -0,0 +1,8 @@
+class O1 {
+ private[this] case class C()
+
+ val x = new O1
+
+ println(x.C()) // should not be accessible
+ println(new x.C) // is correctly not accessible
+}