Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
reassignment
/
else.kt
blob: 4a6f0070fd9c5dadea19ebae550923ce7952740f [
file
]
// FIR_IDENTICAL
// DIAGNOSTICS: -UNUSED_VALUE
fun foo
(
f
:
Boolean
):
Int
{
val i
:
Int
if
(
f
)
{}
else
{
i
=
2
}
<!
VAL_REASSIGNMENT
!>
i
<!>
=
3
return
i
}