Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
stringSwitchWithSubjectVal.kt
blob: c2a6c5bd0c8d21b89bb530943a94159e9694b1e5 [
file
] [
log
] [
blame
]
fun foo
(
x
:
String
):
String
{
return
when
(
val y
=
x
)
{
"1"
->
"one"
"2"
->
"two"
"3"
->
"two and one"
"4"
->
"two and two"
else
->
"many"
}
}
// 0 LOOKUPSWITCH
// 1 TABLESWITCH