Partial body resolve tests: more informative test output
This commit is contained in:
@@ -1,6 +1,21 @@
|
||||
Resolve target: value-parameter val p: kotlin.Any smart-cast to kotlin.String
|
||||
Skipped statements:
|
||||
y(p as? Int)
|
||||
z(f() as String)
|
||||
p1 as String
|
||||
z(p1 as String)
|
||||
----------------------------------------------
|
||||
fun foo(p: Any, p1: Any?) {
|
||||
x(e.f as String)
|
||||
// STATEMENT DELETED: y(p as? Int)
|
||||
// STATEMENT DELETED: z(f() as String)
|
||||
|
||||
if (a) {
|
||||
print((p as String).size)
|
||||
}
|
||||
else {
|
||||
print((p as String).length)
|
||||
}
|
||||
|
||||
if (y()) {
|
||||
print(<caret>p.size)
|
||||
// STATEMENT DELETED: p1 as String
|
||||
}
|
||||
|
||||
// STATEMENT DELETED: z(p1 as String)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user