diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2012-07-28 13:56:32 +0200 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2012-07-28 17:05:16 +0200 |
commit | 07824e5a3837a38f937dccbb08dc7539804cc8ce (patch) | |
tree | 716bcb81867317b500badef1a95b0ba95aef0aee /test/files/run/t4023.scala | |
parent | 2dbeff0035060f5cf909443315733d7d7911928d (diff) | |
download | scala-07824e5a3837a38f937dccbb08dc7539804cc8ce.tar.gz scala-07824e5a3837a38f937dccbb08dc7539804cc8ce.tar.bz2 scala-07824e5a3837a38f937dccbb08dc7539804cc8ce.zip |
SI-4023 Testcase closes issue with inner classes/getDeclaredClasses
Diffstat (limited to 'test/files/run/t4023.scala')
-rw-r--r-- | test/files/run/t4023.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/files/run/t4023.scala b/test/files/run/t4023.scala new file mode 100644 index 0000000000..4846fa31b4 --- /dev/null +++ b/test/files/run/t4023.scala @@ -0,0 +1,23 @@ +object Test { + object C { + class B1 + private class B2 + object B3 + private object B4 + object B5 extends B1 + private object B6 extends B2 + + val valuesTry1 = this.getClass.getDeclaredClasses + val valuesTry2 = C.getClass.getDeclaredClasses + val valuesTry3 = getClass.getDeclaredClasses + } + + def main(args: Array[String]) { + println("Try 1: (" + C.valuesTry1.length + " classes)") + C.valuesTry1.foreach(println) + println("Try 2: (" + C.valuesTry2.length + " classes)") + C.valuesTry2.foreach(println) + println("Try 3: (" + C.valuesTry3.length + " classes)") + C.valuesTry3.foreach(println) + } +}
\ No newline at end of file |