Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
eeaff786f0d0a86b7b827da0028bbafe287d3c04
/
.
/
compiler
/
testData
/
codegen
/
box
/
branching
/
when2.kt
blob: 925747269db2685e52e45804271db4417b69a75c [
file
]
// WITH_STDLIB
import
kotlin
.
test
.*
fun when2
(
i
:
Int
):
Int
{
when
(
i
)
{
0
->
return
42
else
->
return
24
}
}
fun box
():
String
{
val res
=
when2
(
0
)
if
(
res
!=
42
)
return
"FAIL $res"
return
"OK"
}