Don't generate nullability assertions in methods for directly invoked lambdas
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user