Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6330def4271b547b5c7db5f9759e387de2908e94
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
WhenIn.fir.kt
blob: f287d76b09882341cbd2cecf3079c3edb3a77f25 [
file
] [
log
] [
blame
]
// !CHECK_TYPE
fun foo
(
x
:
Int
,
list
:
List
<
Int
>?)
{
when
(
x
)
{
in
list
!!
->
checkSubtype
<
List
<
Int
>>(
list
)
else
->
{}
}
}
fun whenWithoutSubject
(
x
:
Int
,
list
:
List
<
Int
>?)
{
when
{
x
in
list
!!
->
checkSubtype
<
List
<
Int
>>(
list
)
else
->
{}
}
}