Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2f8b8915520217c656f00750d7faa239c6233ece
/
.
/
compiler
/
testData
/
codegen
/
boxWithStdlib
/
whenEnumOptimization
/
nullableEnum.kt
blob: 457f6281e1ec70546430f7a90bfd4d16dea44ef1 [
file
]
enum
class
E
{
A
,
B
}
fun test
(
e
:
E
?)
=
when
(
e
)
{
E
.
A
->
"Fail A"
null
->
"OK"
E
.
B
->
"Fail B"
}
fun box
():
String
{
return
test
(
null
)
}