Files
kotlin-fork/compiler/testData/codegen/script/inline.kts
T
Ilya Chernikov 5824b9c59c K2 Scripting: add Fir script codegen tests
27 failing tests are muted
2023-07-05 19:46:03 +00:00

16 lines
218 B
Kotlin
Vendored

// IGNORE_BACKEND_K2: JVM_IR
// expected: rv: 2
inline fun foo(l: (Int) -> Int ): Int {
return l(1)
}
fun bar(p: Int): Int {
return p + 1
}
fun main(): Int {
return foo { x -> bar(x) }
}
val rv = main()