[LL FIR] AbstractFirLazyBodiesCalculatorTest: add ability to suppress test
We have inconsistency in lazy body calculator, but only tests are affected, because in the production we recreated bodies anyway ^KT-62840
This commit is contained in:
committed by
Space Team
parent
256d83b005
commit
c0f4f7fefd
+5
@@ -1,10 +1,15 @@
|
||||
// IGNORE_TREE_ACCESS: KT-64899
|
||||
// IGNORE_BODY_CALCULATOR
|
||||
package util
|
||||
|
||||
if (true) {
|
||||
@DestrAnno("destr 1 $prop")
|
||||
val (@LeftAnno("a $prop") a, @RightAnno("b $prop") b) = 0 to 1
|
||||
|
||||
run {
|
||||
println()
|
||||
}
|
||||
|
||||
@Destr2Anno("destr 1 $prop")
|
||||
val (@SecondLeftAnno("c $prop") c, @SecondRightAnno("d $prop") d) = 2 to 3
|
||||
}
|
||||
|
||||
+1
@@ -7,6 +7,7 @@ FILE: scriptStatementLevelDestructuringWithAnnotationAsLastStatement.kts
|
||||
@DestrAnno(LAZY_EXPRESSION) lval <destruct>: <implicit> = IntegerLiteral(0).to#(IntegerLiteral(1))
|
||||
@LeftAnno(LAZY_EXPRESSION) lval a: <implicit> = R|<local>/<destruct>|.component1#()
|
||||
@RightAnno(LAZY_EXPRESSION) lval b: <implicit> = R|<local>/<destruct>|.component2#()
|
||||
run#(<L> = LAZY_EXPRESSION)
|
||||
@Destr2Anno(LAZY_EXPRESSION) lval <destruct>: <implicit> = IntegerLiteral(2).to#(IntegerLiteral(3))
|
||||
@SecondLeftAnno(LAZY_EXPRESSION) lval c: <implicit> = R|<local>/<destruct>|.component1#()
|
||||
@SecondRightAnno(LAZY_EXPRESSION) lval d: <implicit> = R|<local>/<destruct>|.component2#()
|
||||
|
||||
+4
@@ -7,6 +7,10 @@ FILE: scriptStatementLevelDestructuringWithAnnotationAsLastStatement.kts
|
||||
@DestrAnno(<strcat>(String(destr 1 ), prop#)) lval <destruct>: <implicit> = IntegerLiteral(0).to#(IntegerLiteral(1))
|
||||
@LeftAnno(<strcat>(String(a ), prop#)) lval a: <implicit> = R|<local>/<destruct>|.component1#()
|
||||
@RightAnno(<strcat>(String(b ), prop#)) lval b: <implicit> = R|<local>/<destruct>|.component2#()
|
||||
run#(<L> = run@fun <implicit>.<anonymous>(): <implicit> <inline=Unknown> {
|
||||
println#()
|
||||
}
|
||||
)
|
||||
@Destr2Anno(<strcat>(String(destr 1 ), prop#)) lval <destruct>: <implicit> = IntegerLiteral(2).to#(IntegerLiteral(3))
|
||||
@SecondLeftAnno(<strcat>(String(c ), prop#)) lval c: <implicit> = R|<local>/<destruct>|.component1#()
|
||||
@SecondRightAnno(<strcat>(String(d ), prop#)) lval d: <implicit> = R|<local>/<destruct>|.component2#()
|
||||
|
||||
Reference in New Issue
Block a user