Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6fc27c22f44d8051bf2e89f1657c0d9741c281c0
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
functionLiterals
/
functionLiteralInIf.kt
blob: e73b959abae56fc54ab84dd459105606769ee221 [
file
]
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_EXPRESSION
import
java
.
util
.
HashSet
fun test123
()
{
val g
:
(
Int
)
->
Unit
=
if
(
true
)
{
val
set
=
HashSet
<
Int
>();
{
i
->
set
.
add
(
i
)
}
}
else
{
{
it
->
it
}
}
}