aboutsummaryrefslogtreecommitdiff
path: root/tests/run/null-hash.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/null-hash.scala')
-rw-r--r--tests/run/null-hash.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/run/null-hash.scala b/tests/run/null-hash.scala
new file mode 100644
index 000000000..9b1f28b08
--- /dev/null
+++ b/tests/run/null-hash.scala
@@ -0,0 +1,15 @@
+object Test {
+ def f1 = List(5, 10, null: String).##
+ def f2(x: Any) = x.##
+ def f3 = ((55, "abc", null: List[Int])).##
+
+ def main(args: Array[String]): Unit = {
+ f1
+ f2(null)
+ f2(null: String)
+ f3
+ null.##
+ (null: Any).##
+ (null: String).##
+ }
+}