Files
kotlin/compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/simpleErased.kt
2017-05-25 14:38:53 +03:00

17 lines
359 B
Kotlin
Vendored

// FILE: 1.kt
// LANGUAGE_VERSION: 1.2
// SKIP_INLINE_CHECK_IN: inlineFun$default
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
}