Files
kotlin-fork/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt
T
2021-02-02 17:53:52 +03:00

17 lines
335 B
Kotlin
Vendored

// SKIP_INLINE_CHECK_IN: inlineFun$default
// FILE: 1.kt
package test
inline fun inlineFun(capturedParam: String, lambda: () -> Any = { capturedParam as Any }): Any {
return lambda()
}
// FILE: 2.kt
// CHECK_CONTAINS_NO_CALLS: box except=throwCCE;isType
import test.*
fun box(): String {
return inlineFun("OK") as String
}