summaryrefslogtreecommitdiff
path: root/test/files/run/elidable-opt.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2017-02-15 10:33:28 -0800
committerSom Snytt <som.snytt@gmail.com>2017-02-15 15:17:01 -0800
commit6fb382501f7a63f3227a18396a2af0c862e6ab1c (patch)
tree51ca8422a68a13537f1ce9b2b7a182de6f266fec /test/files/run/elidable-opt.check
parent05d5338ff4ee3ffe5ef1c0e33faa1a29480be2b0 (diff)
downloadscala-6fb382501f7a63f3227a18396a2af0c862e6ab1c.tar.gz
scala-6fb382501f7a63f3227a18396a2af0c862e6ab1c.tar.bz2
scala-6fb382501f7a63f3227a18396a2af0c862e6ab1c.zip
SI-10190 Elide string to empty instead of null
Avoid NPE when eliding string-valued functions. For example, `log(s"$cheap$expensive")` needn't print null. This is a natural and inexpensive way to elide strings.
Diffstat (limited to 'test/files/run/elidable-opt.check')
-rw-r--r--test/files/run/elidable-opt.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/elidable-opt.check b/test/files/run/elidable-opt.check
index 88cf98e0d1..969b9a420a 100644
--- a/test/files/run/elidable-opt.check
+++ b/test/files/run/elidable-opt.check
@@ -11,4 +11,4 @@ false
0
0.0
0.0
-null
+