[IR BE] Fix capturing of var-locals inside class/field initializers
This commit is contained in:
Generated
+10
@@ -1369,6 +1369,16 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInPropertyInit.kt")
|
||||
public void testCaptureVarInPropertyInit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInPropertyInit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnit.kt")
|
||||
public void testCoercionToUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt");
|
||||
|
||||
+10
@@ -1369,6 +1369,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInPropertyInit.kt")
|
||||
public void testCaptureVarInPropertyInit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInPropertyInit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("coercionToUnit.kt")
|
||||
public void testCoercionToUnit() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/coercionToUnit.kt");
|
||||
|
||||
Reference in New Issue
Block a user