summaryrefslogtreecommitdiff
path: root/test/files/neg/inlineMaxSize.check
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2015-05-22 17:34:06 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2015-05-25 13:40:35 +0200
commitf4381866a8560ed65ce411c2f28ffd9b4df945e2 (patch)
tree7f9e3e882423296fcd7101211c256345fa0303d3 /test/files/neg/inlineMaxSize.check
parent57be8a33ebbc8e7a7d64404fe5db74ef895c5891 (diff)
downloadscala-f4381866a8560ed65ce411c2f28ffd9b4df945e2.tar.gz
scala-f4381866a8560ed65ce411c2f28ffd9b4df945e2.tar.bz2
scala-f4381866a8560ed65ce411c2f28ffd9b4df945e2.zip
Enable nullness analysis in the inliner
When inlining an instance call, the inliner has to ensure that a NPE is still thrown if the receiver object is null. By using the nullness analysis, we can avoid emitting this code in case the receiver object is known to be not-null.
Diffstat (limited to 'test/files/neg/inlineMaxSize.check')
-rw-r--r--test/files/neg/inlineMaxSize.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/inlineMaxSize.check b/test/files/neg/inlineMaxSize.check
index d218a8b6e2..9d790e154c 100644
--- a/test/files/neg/inlineMaxSize.check
+++ b/test/files/neg/inlineMaxSize.check
@@ -2,8 +2,8 @@ inlineMaxSize.scala:7: warning: C::i()I is annotated @inline but could not be in
The size of the callsite method C::j()I
would exceed the JVM method size limit after inlining C::i()I.
- @inline final def j = i + i
- ^
+ @inline final def j = i + i + i
+ ^
error: No warnings can be incurred under -Xfatal-warnings.
one warning found
one error found