mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
17 lines
433 B
Kotlin
Vendored
17 lines
433 B
Kotlin
Vendored
// FILE: 1.kt
|
|
// LANGUAGE_VERSION: 1.2
|
|
// SKIP_INLINE_CHECK_IN: inlineFun$default
|
|
package test
|
|
|
|
inline fun inlineFun(crossinline inlineLambda: () -> String = { "OK" }, noinline noInlineLambda: () -> String = { inlineLambda() }): String {
|
|
return noInlineLambda()
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
//NO_CHECK_LAMBDA_INLINING
|
|
// CHECK_CALLED_IN_SCOPE: function=inlineFun$lambda_0 scope=box
|
|
import test.*
|
|
|
|
fun box(): String {
|
|
return inlineFun()
|
|
} |