Don't generate nullability assertions in methods for directly invoked lambdas

This commit is contained in:
Xin Wang
2021-06-29 09:24:33 +08:00
committed by teamcityserver
parent fbe062ee64
commit 8317daa00b
6 changed files with 37 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
// TARGET_BACKEND: JVM_IR
fun box() {
val str = "OK"
val a = { s: String -> s }("OK")
val b = { s: String -> s }(str)
val c = { s: String -> s }
c.invoke("OK")
}
// 1 checkNotNullParameter