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,16 @@
|
||||
Resolve target: value-parameter val b: kotlin.String?
|
||||
----------------------------------------------
|
||||
data class TestData(val first: Int, val second: String?)
|
||||
|
||||
fun f() : TestData {}
|
||||
|
||||
fun test(b: String?, p: Int) {
|
||||
if (p > 0) {
|
||||
val (a, b) = f()
|
||||
print(b!!.size)
|
||||
}
|
||||
else {
|
||||
print(b!!.size)
|
||||
}
|
||||
<caret>b
|
||||
}
|
||||
Reference in New Issue
Block a user