Support local property delegation to inline class values

Also, add extra test on property delegation.
This commit is contained in:
Dmitry Petrov
2018-10-01 17:30:48 +03:00
parent 6fa436911a
commit b55b0c1ff1
10 changed files with 324 additions and 9 deletions
@@ -12323,6 +12323,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
}
@TestMetadata("captureLocalVarDelegatedToInlineClass.kt")
public void testCaptureLocalVarDelegatedToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/captureLocalVarDelegatedToInlineClass.kt");
}
@TestMetadata("delegateClassVarToInlineClass.kt")
public void testDelegateClassVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateClassVarToInlineClass.kt");
@@ -12343,11 +12348,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateJvmStaticCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateLocalVarToInlineClass.kt")
public void testDelegateLocalVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateLocalVarToInlineClass.kt");
}
@TestMetadata("delegateObjectVarToInlineClass.kt")
public void testDelegateObjectVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateObjectVarToInlineClass.kt");
}
@TestMetadata("delegatePrivateCompanionVarToInlineClass.kt")
public void testDelegatePrivateCompanionVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegatePrivateCompanionVarToInlineClass.kt");
}
@TestMetadata("delegateTopLevelVarToInlineClass.kt")
public void testDelegateTopLevelVarToInlineClass() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/propertyDelegation/delegateTopLevelVarToInlineClass.kt");