Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
699829ccb3e80dbb53c10cccdf1e50f06a5c5346
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
whenStringOptimization
/
nonInlinedConst.kt
blob: e44503c1d45615e8d08bc729dac92470633a061c [
file
]
// !LANGUAGE: -InlineConstVals
const
val y
=
"cde"
fun foo
(
x
:
String
)
:
String
{
when
(
x
)
{
"abc"
,
"${y}"
->
return
"abc_cde"
"e"
+
"fg"
,
"ghi"
->
return
"efg_ghi"
}
return
"other"
}
// 0 LOOKUPSWITCH