JVM_IR: generate non-null assertions for arguments

This commit is contained in:
pyos
2019-05-20 12:46:38 +02:00
committed by Georgy Bronnikov
parent 266976ac1e
commit 6b2d874ccc
12 changed files with 47 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun foo(s: String) = s as CharSequence
// 0 IFNULL

View File

@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
fun test(s: String) = s?.length
// 0 IFNULL