diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-22 09:17:30 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-22 09:17:30 -0800 |
commit | 62fcd3d922056407703ac3363b897f82980b0926 (patch) | |
tree | 53255d485003ffef98c980aff82fb116a342a5e3 /test/files | |
parent | 1b6661b8b586637ba5d54510c7bda1144acab23b (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t7015.scala | 2 |
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 |