Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
073a50037049a4e0869085bf4acf7c29e56210e3
/
.
/
compiler
/
testData
/
codegen
/
bytecodeText
/
when
/
noBoxingInDefaultWhenWithSpecialCases.kt
blob: c07b3dd7fbfbb9246cddc15f0309be535f6cfd3b [
file
] [
log
] [
blame
]
fun testInt
(
i
:
Int
?)
=
when
(
i
)
{
0
->
"zero"
42
->
"magic"
else
->
"other"
}
fun testLong
(
i
:
Long
?)
=
when
(
i
)
{
0L
->
"zero"
42L
->
"magic"
else
->
"other"
}
// 0 valueOf
// 0 Integer.valueOf
// 0 Long.valueOf
// 0 areEqual