Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/SmartCastPointsResolveRequired1.dump
T
Valentin Kipyatkov 4cd7193047 KT-11018 Ctrl + Mouse Hover shows a var as val
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00

18 lines
309 B
Plaintext
Vendored

Resolve target: value-parameter x: kotlin.Any?
----------------------------------------------
fun foo(x: Any?, p: Int) {
if (p > 0) {
val x = f()
print(x!!)
}
else {
val x = g()
print(x!!)
}
<caret>x.hashCode()
}
fun f(): Any? = null
fun g(): Any? = null