blob: 0a7e2d89ac66587366cfba7dea499cffae3fb30c [file]
// IGNORE_BACKEND: JS_IR, NATIVE
// IGNORE_HMPP: JS_IR
// DUMP_IR
// MODULE: lib
// FILE: p3/foo.kt
package p3;
import org.jetbrains.kotlin.plugin.sandbox.MyInlineable
@MyInlineable
public fun Foo(
text: @MyInlineable () -> Unit,
) {}
@MyInlineable
public fun FooReturn(
) = @MyInlineable {}
// MODULE: main(lib)
// FILE: main.kt
import org.jetbrains.kotlin.plugin.sandbox.MyInlineable
import p3.Foo
import p3.FooReturn
@MyInlineable
public fun Bar() {
Foo(
text = {}, // @Inlineable invocations can only happen from the context of a @Inlineable function
)
FooReturn()()
}
fun box(): String = "OK"