[IR BE] Fix capturing of var-locals inside class/field initializers

This commit is contained in:
Roman Artemev
2019-05-30 15:12:17 +03:00
committed by romanart
parent 5686de7e09
commit beb1ce55f8
8 changed files with 121 additions and 13 deletions
@@ -1834,6 +1834,16 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.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");