Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataFlowInfoTraversal
/
WhenIn.fir.kt
blob: 6a1adcfed3438bf63ff1387cbebc593b9187a6e4 [
file
]
// 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
->
{}
}
}