FIR: add a resolution mode for property delegates

Like function arguments, they are context-dependent, but unlike function
arguments, callable references should be resolved eagerly as if they are
explicit receivers.
This commit is contained in:
pyos
2020-11-17 14:02:35 +01:00
committed by Mikhail Glukhikh
parent 0a5b899aab
commit 7327c20200
15 changed files with 75 additions and 32 deletions
@@ -11428,6 +11428,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtPropertyInClass.kt");
}
@TestMetadata("delegateToAnother.kt")
public void testDelegateToAnother() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateToAnother.kt");
}
@TestMetadata("delegateWithPrivateSet.kt")
public void testDelegateWithPrivateSet() throws Exception {
runTest("compiler/testData/codegen/box/delegatedProperty/delegateWithPrivateSet.kt");