Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
functionLiterals
/
functionLiteralInIf.kt
blob: 67d680349bc0ead1066c784921e70f1423ca9480 [
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
}
}
}