Partial body resolve: rewritten algorithm of filter building to ensure correct resolve of smart cast points (+ prepared to support more strict mode for resolve only)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Resolve target: value-parameter val 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
|
||||
Reference in New Issue
Block a user