Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
subjectValInEnumWhenHasLocalVariableSlot.kt
blob: 92ac4dddb16ecf2d373291ce1365ef2a8a989176 [
file
] [
log
] [
blame
]
// !LANGUAGE: +VariableDeclarationInWhenSubject
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