summaryrefslogtreecommitdiff
path: root/test/files/pos/bug704.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug704.scala')
-rw-r--r--test/files/pos/bug704.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/bug704.scala b/test/files/pos/bug704.scala
new file mode 100644
index 0000000000..aea8292f2d
--- /dev/null
+++ b/test/files/pos/bug704.scala
@@ -0,0 +1,14 @@
+trait D {
+ private val x = 1
+ private object xxxx { Console.println(x) }
+}
+object Go extends D {
+ def main(args : Array[String]) : Unit = {};
+}
+trait D2 {
+ val x = 1
+ object yyyy { Console.println(x) }
+}
+object Go2 extends D2 {
+ def main(args : Array[String]) : Unit = {};
+}