Files
kotlin-fork/plugins/jvm-abi-gen/testData/compile/inlineReifiedFunction/app/app.kt
T

13 lines
300 B
Kotlin
Vendored

package app
import lib.*
fun runAppAndReturnOk(): String {
val a = safeCall<Int>(10) { it * it }
if (a != 100) error("a is '$a', but is expected to be '100'")
val b = safeCall<Int>(null) { it * it }
if (b != null) error("b is '$b', but is expected to be 'null'")
return "OK"
}