Files
kotlin-fork/idea/testData/resolve/partialBodyResolve/IfBranchesAutoCasts2.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

15 lines
362 B
Plaintext
Vendored

Resolve target: value-parameter p1: kotlin.Any? smart-cast to kotlin.Any
----------------------------------------------
fun foo(p: Any?, p1: Any?, p2: Any?) {
if (x()) {
/* STATEMENT DELETED: print(p!!) */
print(p1!!)
}
else {
print(p1 as String)
/* STATEMENT DELETED: print(p2!!) */
}
<caret>p1.hashCode()
}