Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
boxInline
/
simple
/
inlineCallInInlineLambda.kt
blob: f8b6a22d1c78375dfb874e296668a102e44bd716 [
file
]
// FILE: 1.kt
package
test
inline
fun f
(
g
:
(
Int
)
->
Int
)
=
g
(
2
)
inline
fun h
()
=
1
// FILE: 2.kt
import
test
.*
fun box
():
String
{
val result
=
f
{
it
+
h
()
}
return
if
(
result
==
3
)
"OK"
else
"fail: $result"
}