Files
kotlin-fork/compiler/testData/codegen/boxInline/complex/kt44429.kt
T
2021-06-16 17:25:07 +05:00

16 lines
229 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
inline fun <T> takeT(t: T) {}
// FILE: 2.kt
import test.*
fun box(): String {
val f = { null } as () -> Int
takeT(f())
return "OK"
}