Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/lambdaBetweenArguments.kt
T
2021-05-28 15:36:23 +03:00

10 lines
233 B
Kotlin
Vendored

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