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,20 @@
Resolve target: val v2: kotlin.Int
----------------------------------------------
fun foo(p: Int) {
/* STATEMENT DELETED: x() */
val v1 = p * p
if (y()) {
val v2 = v1 * v1
val v3 = v1 * v2
/* STATEMENT DELETED: run { val v2 = 1 println(v2) } */
print(<caret>v2)
/* STATEMENT DELETED: run { val v2 = 2 println(v2) } */
}
/* STATEMENT DELETED: z() */
}