Partial body resolve works for property accessor body

This commit is contained in:
Valentin Kipyatkov
2014-11-21 13:05:40 +03:00
parent 8ccf56415a
commit 0b56760910
6 changed files with 59 additions and 27 deletions
@@ -0,0 +1,14 @@
Resolve target: val v: kotlin.Int
----------------------------------------------
var prop: Int
get() {
// STATEMENT DELETED: print("get")
val v = 1
<caret>v
// STATEMENT DELETED: return 1
}
set {
// STATEMENT DELETED: print("set")
// STATEMENT DELETED: val v = 2
// STATEMENT DELETED: print("yes")
}
@@ -0,0 +1,12 @@
var prop: Int
get() {
print("get")
val v = 1
<caret>v
return 1
}
set {
print("set")
val v = 2
print("yes")
}
@@ -0,0 +1,6 @@
val prop: Int = run {
print("a")
val v = 1
<caret>v
1
}