Checked that partial body resolve works for property delegating

This commit is contained in:
Valentin Kipyatkov
2014-11-21 15:56:05 +03:00
parent 390f5b1bc4
commit 0f59622a44
3 changed files with 30 additions and 0 deletions
@@ -0,0 +1,13 @@
Resolve target: fun g(): kotlin.Int
----------------------------------------------
import kotlin.properties.Delegates
val prop: Int by Delegates.lazy {
// STATEMENT DELETED: print(1)
val v = f()
<caret>g()
v + 1
}
fun f(): Int = 1
fun g(): Int = 2
@@ -0,0 +1,11 @@
import kotlin.properties.Delegates
val prop: Int by Delegates.lazy {
print(1)
val v = f()
<caret>g()
v + 1
}
fun f(): Int = 1
fun g(): Int = 2