Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
b1f59e5f0d739fd4c19f9e413cc9c324657eafed
/
.
/
compiler
/
testData
/
cfg
/
controlStructures
/
whenConditions.kt
blob: 6e499f92f84b1b2a237d22f02d1fe6466409e496 [
file
]
import
java
.
util
.
Collections
fun foo
(
a
:
Number
)
{
val t
=
when
(
a
)
{
1
->
"1"
in
Collections
.
singleton
(
2
)
->
"2"
is
Int
->
"Int"
!
in
Collections
.
singleton
(
3
)
->
"!3"
!
is
Number
->
"!Number"
else
->
null
}
}