mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
18 lines
384 B
Kotlin
Vendored
18 lines
384 B
Kotlin
Vendored
// IGNORE_BACKEND: JS_IR
|
|
// 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
|
|
} |