diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-05-13 10:16:01 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-05-13 10:16:01 +0200 |
commit | ea166087ce3fe2731a8b0d767cbbd4c5e5e648c1 (patch) | |
tree | d89cd3a6d37ffa33b71be89a54e9bc398ec605cc /test | |
parent | 6cb6d37c99bb66d5a83cbaa4633bba0f2aa8c1ba (diff) | |
parent | 3a8d9fb6be1f11554401d305ef218ea4e25ffa06 (diff) | |
download | scala-ea166087ce3fe2731a8b0d767cbbd4c5e5e648c1.tar.gz scala-ea166087ce3fe2731a8b0d767cbbd4c5e5e648c1.tar.bz2 scala-ea166087ce3fe2731a8b0d767cbbd4c5e5e648c1.zip |
Merge pull request #3744 from retronym/ticket/8582
SI-8582 Pending test for InnerClasses bug in GenBCode
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t8582.check | 2 | ||||
-rw-r--r-- | test/files/run/t8582.scala | 16 | ||||
-rw-r--r-- | test/pending/run/t8582-bcode.check | 2 | ||||
-rw-r--r-- | test/pending/run/t8582-bcode.flags | 1 | ||||
-rw-r--r-- | test/pending/run/t8582-bcode.scala | 16 |
5 files changed, 37 insertions, 0 deletions
diff --git a/test/files/run/t8582.check b/test/files/run/t8582.check new file mode 100644 index 0000000000..7e96756986 --- /dev/null +++ b/test/files/run/t8582.check @@ -0,0 +1,2 @@ +class p1.p2.Singleton$Singleton$ +List(class p1.p2.Singleton$Singleton$Singleton$) 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) +} diff --git a/test/pending/run/t8582-bcode.check b/test/pending/run/t8582-bcode.check new file mode 100644 index 0000000000..7e96756986 --- /dev/null +++ b/test/pending/run/t8582-bcode.check @@ -0,0 +1,2 @@ +class p1.p2.Singleton$Singleton$ +List(class p1.p2.Singleton$Singleton$Singleton$) diff --git a/test/pending/run/t8582-bcode.flags b/test/pending/run/t8582-bcode.flags new file mode 100644 index 0000000000..c30091d3de --- /dev/null +++ b/test/pending/run/t8582-bcode.flags @@ -0,0 +1 @@ +-Ybackend:GenBCode diff --git a/test/pending/run/t8582-bcode.scala b/test/pending/run/t8582-bcode.scala new file mode 100644 index 0000000000..844ab8ac14 --- /dev/null +++ b/test/pending/run/t8582-bcode.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) +} |