Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6f1b95d296c5592d3a3e71cc638994fa2ba4e4f7
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
whenStringOptimization
/
inlineStringConstInsideWhen.kt
blob: 8563b273642fec1d807b6957c0c91326682f10d2 [
file
]
const
val y
=
"cde"
fun foo
(
x
:
String
)
:
String
{
when
(
x
)
{
"abc"
,
"${y}"
->
return
"abc_cde"
"e"
+
"fg"
,
"ghi"
->
return
"efg_ghi"
}
return
"other"
}
// 1 LOOKUPSWITCH