Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
417088e15084daef5c72bc17ea66d3cf3c026c33
/
.
/
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