Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
whenStringOptimization
/
inlineStringConstInsideWhen.kt
blob: 8563b273642fec1d807b6957c0c91326682f10d2 [
file
] [
log
] [
blame
]
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