Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
70b97c5abe682fb7598fc5070d94c39256a0baa4
/
.
/
compiler
/
testData
/
codegen
/
box
/
inline
/
coercionToUnit.kt
blob: 0bca098e17b32ecaeb0f98a2ee16e13091fb97be [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
fun
<
T
>
myRun
(
action
:
()
->
T
):
T
=
action
()
fun foo
(
n
:
Number
,
b
:
Boolean
)
{
n
.
let
{
if
(
b
)
return
@let
myRun
()
{
42
}
}
}
fun box
():
String
{
assertEquals
(
Unit
,
foo
(
42
,
false
))
return
"OK"
}