Support local property delegation to inline class values
Also, add extra test on property delegation.
This commit is contained in:
+15
@@ -10863,6 +10863,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, 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");
|
||||
@@ -10883,11 +10888,21 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
+15
@@ -11908,6 +11908,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/inlineClasses/propertyDelegation"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, 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");
|
||||
@@ -11928,11 +11933,21 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user