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

12 lines
274 B
Plaintext
Vendored

Resolve target: value-parameter o: kotlin.Any? smart-cast to kotlin.Any
----------------------------------------------
fun foo(o: Any?, p: Int) {
if (p > 0) {
if (o == null) return
}
else {
if (o !is String) return
}
<caret>o.javaClass
}