[Test] Fix LL FIR test data after introducing new CONSTANT_EVALUATION phase

#KT-64151
This commit is contained in:
Ivan Kylchik
2024-03-01 13:31:47 +01:00
committed by Space Team
parent ada47eb110
commit 5fe3fa878e
593 changed files with 18597 additions and 226 deletions
@@ -248,6 +248,31 @@ FILE: [ResolvedTo(IMPORTS)] secondaryConstructorParameterScript.kts
public? final? [ResolvedTo(RAW_FIR)] fun String.myToInt(): Int { LAZY_BLOCK }
CONSTANT_EVALUATION:
FILE: [ResolvedTo(IMPORTS)] secondaryConstructorParameterScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)] <script-secondaryConstructorParameterScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(CONSTANT_EVALUATION)] class A : R|kotlin/Any| {
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor([ResolvedTo(STATUS)] [CorrespondingProperty=/A.prop] prop: R|kotlin/Int| = LAZY_EXPRESSION, [ResolvedTo(STATUS)] c: R|kotlin/String|): R|A| {
LAZY_super<R|kotlin/Any|>
}
public final [ResolvedTo(STATUS)] [IsFromPrimaryConstructor=true] val prop: R|kotlin/Int| = R|<local>/prop|
public [ResolvedTo(STATUS)] [ContainingClassKey=A] get(): R|kotlin/Int|
public [ResolvedTo(CONSTANT_EVALUATION)] [ContainingClassKey=A] constructor([ResolvedTo(CONSTANT_EVALUATION)] str: R|kotlin/String|): R|A| {
this<R|A|>(str#.myToInt#(), str#)
}
public final [ResolvedTo(STATUS)] fun foo(): <implicit> { LAZY_BLOCK }
}
public? final? [ResolvedTo(RAW_FIR)] fun String.myToInt(): Int { LAZY_BLOCK }
ANNOTATION_ARGUMENTS:
FILE: [ResolvedTo(IMPORTS)] secondaryConstructorParameterScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
@@ -327,4 +352,3 @@ FILE: [ResolvedTo(BODY_RESOLVE)] secondaryConstructorParameterScript.kts
public final [ResolvedTo(BODY_RESOLVE)] fun R|kotlin/String|.myToInt(): R|kotlin/Int| {
^myToInt Int(42)
}