summaryrefslogtreecommitdiff
path: root/test/files/pos/trait_fields_nested_private_object.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/trait_fields_nested_private_object.scala')
-rw-r--r--test/files/pos/trait_fields_nested_private_object.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/pos/trait_fields_nested_private_object.scala b/test/files/pos/trait_fields_nested_private_object.scala
new file mode 100644
index 0000000000..8efc1cb3fa
--- /dev/null
+++ b/test/files/pos/trait_fields_nested_private_object.scala
@@ -0,0 +1,8 @@
+trait NestedObj {
+ private object O { println("NO") }
+}
+
+
+class C extends NestedObj {
+ def O = ???
+} \ No newline at end of file