Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ba045e44fbc13a4a8bcfa03689115fd0a25366a9
/
.
/
compiler
/
testData
/
codegen
/
box
/
constants
/
constantsInWhen.kt
blob: cbc39e03146703c8a56c29e6263f6bf354f5df07 [
file
] [
log
] [
blame
]
fun test
(
b
:
Boolean
,
i
:
Int
)
{
if
(
b
)
{
when
(
i
)
{
0
->
foo
(
1
)
else
->
null
}
}
else
null
}
fun foo
(
i
:
Int
)
=
i
fun box
():
String
{
test
(
true
,
1
)
return
"OK"
}