Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6fc27c22f44d8051bf2e89f1657c0d9741c281c0
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
declarationChecks
/
anonymousFunUnusedLastExpressionInBlock.fir.kt
blob: 5ed91d1bbbe00d6bd6b1f4c7dd2c417cdabb7527 [
file
]
// !DIAGNOSTICS: +UNUSED_EXPRESSION
fun unusedExpressions
()
{
if
(
1
==
1
)
fun
():
Int
{
return
1
}
else
fun
()
=
1
if
(
1
==
1
)
{
fun
():
Int
{
return
1
}
}
else
fun
()
=
1
when
(
1
)
{
0
->
fun
():
Int
{
return
1
}
else
->
fun
()
=
1
}
fun
()
=
1
}