Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
codegen
/
box
/
inline
/
redundantCoercionsCleaner.kt
blob: 833e9150b3f62c7b1510c103ce2c0a21e226e8b2 [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
inline
fun runAndThrow
(
action
:
()
->
Unit
):
Nothing
{
action
()
throw
Exception
()
}
inline
fun foo
():
Int
=
runAndThrow
{
return
1
}
fun box
():
String
{
val result
:
Any
=
foo
()
assertEquals
(
1
,
result
)
return
"OK"
}