Partial body resolve: added more tests
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
Resolve target: value-parameter val p: kotlin.String? smart-cast to kotlin.String
|
||||
----------------------------------------------
|
||||
fun foo(p: String?, x: Boolean, y: Boolean, z: Boolean, t: Boolean) {
|
||||
if (p == null) {
|
||||
if (x) {
|
||||
// STATEMENT DELETED: print("x")
|
||||
error("error")
|
||||
}
|
||||
else if (y) {
|
||||
// STATEMENT DELETED: print("y")
|
||||
if (z) {
|
||||
// STATEMENT DELETED: print("z")
|
||||
return
|
||||
}
|
||||
else {
|
||||
throw Exception()
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (t) {
|
||||
// STATEMENT DELETED: print("t")
|
||||
return
|
||||
}
|
||||
else {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<caret>p.length
|
||||
}
|
||||
Reference in New Issue
Block a user