Files
kotlin/compiler/testData/codegen/boxInline/nullChecks/parameterNullCheck_1_4.kt
Alexander Udalov 2baddb029c Use Intrinsics.checkNotNullParameter to throw NPE in parameter null checks
Similarly to previous commits, this method was unused, so we're changing
its semantics in API version >= 1.4.

 #KT-22275 In Progress
2019-08-12 16:09:23 +02:00

17 lines
202 B
Kotlin
Vendored

// !API_VERSION: LATEST
// FILE: 1.kt
package test
public inline fun <R> doRun(block: () -> R): R {
return block()
}
// FILE: 2.kt
import test.*
fun box(): String {
return doRun { "OK" }
}