Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
box
/
controlStructures
/
kt2577.kt
blob: 1ad1d07c1a277d0d9305dbf8cdfbd0cc7327832a [
file
] [
log
] [
blame
]
// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: EXCEPTIONS_NOT_IMPLEMENTED
fun foo
():
Int
{
try
{
}
finally
{
try
{
return
1
}
catch
(
e
:
Throwable
)
{
return
2
}
}
}
fun box
()
=
if
(
foo
()
==
1
)
"OK"
else
"Fail"