Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
161333d3e7d13dd98386fe346a71a07eadfe4756
/
.
/
compiler
/
testData
/
codegen
/
box
/
wasmStringSwitch
/
whenWhenExpressionRHS.kt
blob: 28bde544bc4480ded1966d135480902f6d319dec [
file
]
fun box
():
String
{
val v
=
1
return
when
{
(
when
(
v
)
{
1
->
"foo"
else
->
"bar"
})
==
""
->
"FAIL1"
(
when
(
v
)
{
1
->
"foo"
else
->
"bar"
})
==
"foo"
->
"OK"
else
->
"FAIL2"
}
}