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,21 @@
|
||||
Resolve target: value-parameter val s: kotlin.String?
|
||||
----------------------------------------------
|
||||
fun foo(s: String?, b1: Boolean, b2: Boolean) {
|
||||
x(
|
||||
if (b1) {
|
||||
print(s!!.length)
|
||||
1
|
||||
} else {
|
||||
if (b2) {
|
||||
print(s!!.length + 1)
|
||||
}
|
||||
else {
|
||||
print(s!!.length - 1)
|
||||
}
|
||||
2
|
||||
},
|
||||
<caret>s
|
||||
)
|
||||
}
|
||||
|
||||
fun x(p1: Int, p2: String) { }
|
||||
Reference in New Issue
Block a user