mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
15 lines
262 B
Kotlin
Vendored
15 lines
262 B
Kotlin
Vendored
// !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 }
|
|
}
|
|
} |