diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-26 13:22:33 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-03-26 13:22:33 +0100 |
commit | 6372df754ca8943a5fea3455936dbb6c1723d78e (patch) | |
tree | 65354825353c927cbbb6bc7700a1fd4fc7c3982e /test | |
parent | 439b3eb6a733cd0a274c7d5498d918bce946f8d3 (diff) | |
parent | 06e7e342d1e27097df0b9d0b31a322fd1cf0a34e (diff) | |
download | scala-6372df754ca8943a5fea3455936dbb6c1723d78e.tar.gz scala-6372df754ca8943a5fea3455936dbb6c1723d78e.tar.bz2 scala-6372df754ca8943a5fea3455936dbb6c1723d78e.zip |
Merge pull request #4361 from retronym/ticket/9182
SI-9182 Fix runtime reflection with package object, overloads
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t9182.check | 3 | ||||
-rw-r--r-- | test/files/run/t9182.scala | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t9182.check b/test/files/run/t9182.check new file mode 100644 index 0000000000..80e8b6c558 --- /dev/null +++ b/test/files/run/t9182.check @@ -0,0 +1,3 @@ +constructor package +method A +object A diff --git a/test/files/run/t9182.scala b/test/files/run/t9182.scala new file mode 100644 index 0000000000..1768aa688e --- /dev/null +++ b/test/files/run/t9182.scala @@ -0,0 +1,12 @@ +// Main.scala +package object ops { + object A + def A(a: Any) = () +} + +object Test { + def main(args: Array[String]): Unit = { + val pack = scala.reflect.runtime.currentMirror.staticModule("ops.package") + println(pack.info.decls.toList.map(_.toString).sorted.mkString("\n")) + } +} |