Sign in
android
/
platform
/
external
/
jetbrains
/
kotlin
/
refs/tags/v1.4.0-rc
/
.
/
nj2k
/
testData
/
newJ2k
/
issues
/
kt-22848.kt
blob: 9f8360444e6540f886d2c68e4b03c42ef20c4d2c [
file
] [
log
] [
blame
]
package
test
import
java
.
util
.
Random
object
Test
{
fun x
()
{
val a
:
Int
val b
:
Int
when
(
Random
().
nextInt
())
{
0
->
{
b
=
1
a
=
b
}
else
->
{
b
=
-
1
a
=
b
}
}
println
(
a
+
b
)
}
}