Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b32f408767cf86efaa65eb02699fe00bd61d99a6
/
.
/
compiler
/
testData
/
codegen
/
box
/
when
/
nullableWhen.kt
blob: 717b6a9c30385bc7bab11984ee75484304f787b1 [
file
]
// KT-2148
fun f
(
p
:
Int
?):
Int
{
return
when
(
p
)
{
null
->
3
else
->
p
!!
}
}
fun box
():
String
{
return
if
(
f
(
null
)
==
3
)
"OK"
else
"fail"
}