summaryrefslogtreecommitdiff
path: root/test/files/run/t8582.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t8582.scala')
-rw-r--r--test/files/run/t8582.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/t8582.scala b/test/files/run/t8582.scala
new file mode 100644
index 0000000000..844ab8ac14
--- /dev/null
+++ b/test/files/run/t8582.scala
@@ -0,0 +1,16 @@
+package p1 {
+ package p2 {
+ object Singleton {
+ object Singleton {
+ object Singleton
+ }
+ }
+ }
+}
+
+
+object Test extends App {
+ import p1.p2._
+ println(Singleton.Singleton.getClass)
+ println(Singleton.Singleton.getClass.getDeclaredClasses.toList)
+}