Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
f7ff397a310cd4d47fc4849043f8c9d47412e512
/
.
/
compiler
/
testData
/
codegen
/
boxInline
/
anonymousObject
/
kt13182.kt
blob: 91d42494a12d57fbeb48566b061a92401f7a4f8f [
file
]
// FILE: 1.kt
package
test
inline
fun test
(
cond
:
Boolean
,
crossinline cif
:
()
->
String
):
String
{
return
if
(
cond
)
{
{
cif
()
}()
}
else
{
cif
()
}
}
// FILE: 2.kt
import
test
.*
fun box
():
String
{
val s
=
"OK"
return
test
(
true
)
{
{
s
}()
}
}