summaryrefslogtreecommitdiff
path: root/test/files/run/t7015.scala
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-22 09:17:30 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-22 09:17:30 -0800
commit62fcd3d922056407703ac3363b897f82980b0926 (patch)
tree53255d485003ffef98c980aff82fb116a342a5e3 /test/files/run/t7015.scala
parent1b6661b8b586637ba5d54510c7bda1144acab23b (diff)
downloadscala-62fcd3d922056407703ac3363b897f82980b0926.tar.gz
scala-62fcd3d922056407703ac3363b897f82980b0926.tar.bz2
scala-62fcd3d922056407703ac3363b897f82980b0926.zip
SI-7015 Cleanup from review of null duplication
Based on feedback on https://github.com/scala/scala/pull/2147 * Assertion in GenICode#adaptNullRef reports the erroneous type * Test makes the Null type explicit for greater clarity
Diffstat (limited to 'test/files/run/t7015.scala')
-rw-r--r--test/files/run/t7015.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t7015.scala b/test/files/run/t7015.scala
index 9344ca2906..37a73a9fc4 100644
--- a/test/files/run/t7015.scala
+++ b/test/files/run/t7015.scala
@@ -24,7 +24,7 @@ object Test {
println(s"method that takes any: ${s(f)}")
}
- def f = null
+ def f: Null = null
def g(x: String) = x