Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt
T
2021-01-29 16:55:26 +03:00

11 lines
202 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(x: Int, f: () -> Unit, y: Int) {}
fun bar() {
var x: Int?
x = 4
foo(x, { x = null; x<!UNSAFE_CALL!>.<!>hashCode() }, x)
}