diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2017-01-24 17:50:38 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2017-01-24 17:52:11 +1000 |
commit | f85c62e33e6ec7e84ed5946f1d72f3f74941ab9e (patch) | |
tree | 05bab2d3f057e63850f31e78f00af97adb7080e8 /test | |
parent | b9d4089d19ead36d07c2d6cdda283c9b678d515e (diff) | |
download | scala-f85c62e33e6ec7e84ed5946f1d72f3f74941ab9e.tar.gz scala-f85c62e33e6ec7e84ed5946f1d72f3f74941ab9e.tar.bz2 scala-f85c62e33e6ec7e84ed5946f1d72f3f74941ab9e.zip |
Fix erasure of the qualifier of ##
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/hash-hash-hash-hash.scala | 5 | ||||
-rw-r--r-- | test/files/run/unit-block-hash-hash.scala | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/hash-hash-hash-hash.scala b/test/files/run/hash-hash-hash-hash.scala new file mode 100644 index 0000000000..08793871a7 --- /dev/null +++ b/test/files/run/hash-hash-hash-hash.scala @@ -0,0 +1,5 @@ +object Test { + def main(args: Array[String]): Unit = { + assert(1.##.## == 1) // was java.lang.NoSuchMethodError: java.lang.Object.$hash$hash()I + } +} diff --git a/test/files/run/unit-block-hash-hash.scala b/test/files/run/unit-block-hash-hash.scala new file mode 100644 index 0000000000..2708810a71 --- /dev/null +++ b/test/files/run/unit-block-hash-hash.scala @@ -0,0 +1,12 @@ +object Ex extends Exception +object Test { + def ex: Any = throw Ex + def main(args: Array[String]): Unit = { + try { + { ex; () }.## + sys.error("no exception was thrown") + } catch { + case `Ex` => + } + } +}
\ No newline at end of file |