Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
fae15b3fc4205675bfb51513d6068f83490926d3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
subjectValHasLocalVariableSlot.kt
blob: ae5af7c49044bed206673ca8ec8d4489db20b605 [
file
] [
log
] [
blame
]
// !LANGUAGE: +VariableDeclarationInWhenSubject
fun test
(
a
:
Any
)
=
when
(
val subject
=
a
)
{
is
Int
->
"Int $subject"
is
String
->
"String ${subject.length}"
else
->
"other"
}
// 1 LOCALVARIABLE subject Ljava/lang/Object;