Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.fir.kt
T
2021-02-15 11:37:39 +03:00

11 lines
231 B
Kotlin
Vendored

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