Partial body resolve test to test 2 resolve modes

This commit is contained in:
Valentin Kipyatkov
2014-12-07 06:25:24 -07:00
parent 2a41856af6
commit 8f32a6c1f9
15 changed files with 150 additions and 26 deletions
@@ -0,0 +1,21 @@
Resolve target: value-parameter val p: kotlin.Any smart-cast to kotlin.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) */
}