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
|
||||
@@ -318,6 +318,12 @@ public class PartialBodyResolveTestGenerated extends AbstractPartialBodyResolveT
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("PropertyByDelegate.kt")
|
||||
public void testPropertyByDelegate() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/PropertyByDelegate.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnLambda.kt")
|
||||
public void testReturnLambda() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/resolve/partialBodyResolve/ReturnLambda.kt");
|
||||
|
||||
Reference in New Issue
Block a user