Partial body resolve tests: more informative test output

This commit is contained in:
Valentin Kipyatkov
2014-11-20 13:35:49 +03:00
parent 4503adb7fc
commit cd90ab951f
49 changed files with 495 additions and 100 deletions
@@ -1,6 +1,20 @@
Resolve target: val v2: kotlin.Int
Skipped statements:
x()
run { val v2 = 1 println(v2) }
run { val v2 = 2 println(v2) }
z()
----------------------------------------------
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()
}