diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-14 22:58:29 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-14 22:58:36 +0200 |
commit | 6de06305893eb1fc5d14d6058f239f7854bb6d54 (patch) | |
tree | d09a150c5b89c9fe46ab40d32d9493085444585e /tests/run/i1387.scala | |
parent | bef40b45f6c15bf55fa73ea7923cb4da74cf77d0 (diff) | |
download | dotty-6de06305893eb1fc5d14d6058f239f7854bb6d54.tar.gz dotty-6de06305893eb1fc5d14d6058f239f7854bb6d54.tar.bz2 dotty-6de06305893eb1fc5d14d6058f239f7854bb6d54.zip |
Fix erasure of Java Array[T]
Should be erased to Object[], not Object.
Diffstat (limited to 'tests/run/i1387.scala')
-rw-r--r-- | tests/run/i1387.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run/i1387.scala b/tests/run/i1387.scala new file mode 100644 index 000000000..fe6b3756e --- /dev/null +++ b/tests/run/i1387.scala @@ -0,0 +1,6 @@ +object Test { + + def main(args: Array[String]): Unit = + classOf[java.nio.file.AccessMode].getEnumConstants + +} |