[FIR] FirFakeOverrideGenerator: unify value parameter copy between regular functions and property accessors

This commit contains:
* correct containingFunctionSymbol for value parameter from accessors
* correct choose between originalForIntersectionOverrideAttr and
originalForSubstitutionOverrideAttr for value parameters from functions

^KT-64243
This commit is contained in:
Dmitrii Gridin
2023-12-15 14:42:02 +01:00
committed by Space Team
parent 4a87ae9e04
commit c9f11ad74f
57 changed files with 154 additions and 131 deletions
@@ -1,6 +1,6 @@
public open override [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] x: R|kotlin/Int|): R|kotlin/Unit| { LAZY_BLOCK }
public abstract [ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=/C.foo] fun foo([ResolvedTo(STATUS)] [SubstitutedOverrideOriginalKey=<local>/x] x: R|kotlin/Int|): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=/C.foo] fun foo([ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=<local>/x] x: R|kotlin/Int|): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] x: R|kotlin/Int|): R|kotlin/Unit|
@@ -8,7 +8,7 @@ public abstract [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] x: R|kotlin/In
public open override [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] x: R|kotlin/String|): R|kotlin/Unit| { LAZY_BLOCK }
public abstract [ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=/C.foo] fun foo([ResolvedTo(STATUS)] [SubstitutedOverrideOriginalKey=<local>/x] x: R|kotlin/String|): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=/C.foo] fun foo([ResolvedTo(STATUS)] [IntersectionOverrideOriginalKey=<local>/x] x: R|kotlin/String|): R|kotlin/Unit|
public abstract [ResolvedTo(STATUS)] fun foo([ResolvedTo(STATUS)] x: R|kotlin/String|): R|kotlin/Unit|