Checked that partial body resolve works for property delegating
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user