Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/SmartCastPointsResolveRequired2.kt
T

11 lines
152 B
Kotlin
Vendored

fun foo(x: Any?) {
if (x == null) {
val error = f()
error("error")
}
<caret>x.hashCode()
}
fun f(): (String) -> Unit = {}