aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/private-types-after-typer.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/private-types-after-typer.scala')
-rw-r--r--tests/pending/pos/private-types-after-typer.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pending/pos/private-types-after-typer.scala b/tests/pending/pos/private-types-after-typer.scala
new file mode 100644
index 000000000..5c20cac2a
--- /dev/null
+++ b/tests/pending/pos/private-types-after-typer.scala
@@ -0,0 +1,9 @@
+// Testing that the type of the outer accessor in O2
+// doesn't crash the compiler over private type escaping scope.
+trait T {
+ class C {
+ private object O1 {
+ object O2
+ }
+ }
+}