summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/run/hash-hash-hash-hash.scala5
-rw-r--r--test/files/run/unit-block-hash-hash.scala12
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