Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
3d3ef80feae9fc7b6e2dfea89a0d542393872d1a
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
subjectValInEnumWhenHasLocalVariableSlot.kt
blob: 9735c7ea361009fd55a229e167662a050d90ad3a [
file
]
enum
class
X
{
A
,
B
,
C
}
fun test
(
a
:
X
)
=
when
(
val subject
=
a
)
{
X
.
A
->
0
X
.
B
->
1
X
.
C
->
2
}
// 1 LOCALVARIABLE subject