[FIR2IR] Treat delegated functions as fake-overrides

Delegated callables in FIR are session-dependant (as fake-overrides),
  so it's incorrect to use their FIR as a key for declaration storage.
  Pair of original function and owner lookup tag should be used instead

^KT-62671 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-10-19 11:50:50 +03:00
committed by Space Team
parent 3c68b27280
commit 940567978d
19 changed files with 131 additions and 6 deletions
@@ -29532,6 +29532,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/annotations.kt");
}
@TestMetadata("defaultArgumentInDelegatedFunction.kt")
public void testDefaultArgumentInDelegatedFunction() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/defaultArgumentInDelegatedFunction.kt");
}
@TestMetadata("expectPropertyAsDefaultArgument.kt")
public void testExpectPropertyAsDefaultArgument() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/defaultArguments/expectPropertyAsDefaultArgument.kt");