Generate bytecode for delegated properties
This commit is contained in:
+140
-1
@@ -31,7 +31,7 @@ import org.jetbrains.jet.codegen.generated.AbstractBlackBoxCodegenTest;
|
||||
/** This class is generated by {@link org.jetbrains.jet.generators.tests.GenerateTests}. DO NOT MODIFY MANUALLY */
|
||||
@SuppressWarnings("all")
|
||||
@TestMetadata("compiler/testData/codegen/box")
|
||||
@InnerTestClasses({BlackBoxCodegenTestGenerated.Arrays.class, BlackBoxCodegenTestGenerated.Bridges.class, BlackBoxCodegenTestGenerated.CallableReference.class, BlackBoxCodegenTestGenerated.Casts.class, BlackBoxCodegenTestGenerated.Classes.class, BlackBoxCodegenTestGenerated.Closures.class, BlackBoxCodegenTestGenerated.ControlStructures.class, BlackBoxCodegenTestGenerated.DefaultArguments.class, BlackBoxCodegenTestGenerated.Elvis.class, BlackBoxCodegenTestGenerated.Enum.class, BlackBoxCodegenTestGenerated.ExclExcl.class, BlackBoxCodegenTestGenerated.ExtensionFunctions.class, BlackBoxCodegenTestGenerated.ExtensionProperties.class, BlackBoxCodegenTestGenerated.Functions.class, BlackBoxCodegenTestGenerated.InnerNested.class, BlackBoxCodegenTestGenerated.Instructions.class, BlackBoxCodegenTestGenerated.Intrinsics.class, BlackBoxCodegenTestGenerated.Labels.class, BlackBoxCodegenTestGenerated.LocalClasses.class, BlackBoxCodegenTestGenerated.MultiDecl.class, BlackBoxCodegenTestGenerated.Namespace.class, BlackBoxCodegenTestGenerated.Objects.class, BlackBoxCodegenTestGenerated.OperatorConventions.class, BlackBoxCodegenTestGenerated.PrimitiveTypes.class, BlackBoxCodegenTestGenerated.Properties.class, BlackBoxCodegenTestGenerated.Reflection.class, BlackBoxCodegenTestGenerated.SafeCall.class, BlackBoxCodegenTestGenerated.Sam.class, BlackBoxCodegenTestGenerated.Strings.class, BlackBoxCodegenTestGenerated.Super.class, BlackBoxCodegenTestGenerated.Traits.class, BlackBoxCodegenTestGenerated.TypeInfo.class, BlackBoxCodegenTestGenerated.Unit.class, BlackBoxCodegenTestGenerated.Vararg.class, BlackBoxCodegenTestGenerated.When.class})
|
||||
@InnerTestClasses({BlackBoxCodegenTestGenerated.Arrays.class, BlackBoxCodegenTestGenerated.Bridges.class, BlackBoxCodegenTestGenerated.CallableReference.class, BlackBoxCodegenTestGenerated.Casts.class, BlackBoxCodegenTestGenerated.Classes.class, BlackBoxCodegenTestGenerated.Closures.class, BlackBoxCodegenTestGenerated.ControlStructures.class, BlackBoxCodegenTestGenerated.DefaultArguments.class, BlackBoxCodegenTestGenerated.DelegatedProperty.class, BlackBoxCodegenTestGenerated.Elvis.class, BlackBoxCodegenTestGenerated.Enum.class, BlackBoxCodegenTestGenerated.ExclExcl.class, BlackBoxCodegenTestGenerated.ExtensionFunctions.class, BlackBoxCodegenTestGenerated.ExtensionProperties.class, BlackBoxCodegenTestGenerated.Functions.class, BlackBoxCodegenTestGenerated.InnerNested.class, BlackBoxCodegenTestGenerated.Instructions.class, BlackBoxCodegenTestGenerated.Intrinsics.class, BlackBoxCodegenTestGenerated.Labels.class, BlackBoxCodegenTestGenerated.LocalClasses.class, BlackBoxCodegenTestGenerated.MultiDecl.class, BlackBoxCodegenTestGenerated.Namespace.class, BlackBoxCodegenTestGenerated.Objects.class, BlackBoxCodegenTestGenerated.OperatorConventions.class, BlackBoxCodegenTestGenerated.PrimitiveTypes.class, BlackBoxCodegenTestGenerated.Properties.class, BlackBoxCodegenTestGenerated.Reflection.class, BlackBoxCodegenTestGenerated.SafeCall.class, BlackBoxCodegenTestGenerated.Sam.class, BlackBoxCodegenTestGenerated.Strings.class, BlackBoxCodegenTestGenerated.Super.class, BlackBoxCodegenTestGenerated.Traits.class, BlackBoxCodegenTestGenerated.TypeInfo.class, BlackBoxCodegenTestGenerated.Unit.class, BlackBoxCodegenTestGenerated.Vararg.class, BlackBoxCodegenTestGenerated.When.class})
|
||||
public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInBox() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
@@ -1620,6 +1620,144 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/delegatedProperty")
|
||||
public static class DelegatedProperty extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInDelegatedProperty() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/codegen/box/delegatedProperty"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("capturePropertyInClosure.kt")
|
||||
public void testCapturePropertyInClosure() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/capturePropertyInClosure.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("castGetReturnType.kt")
|
||||
public void testCastGetReturnType() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/castGetReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("castSetParameter.kt")
|
||||
public void testCastSetParameter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/castSetParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultArgs.kt")
|
||||
public void testDefaultArgs() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/defaultArgs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateAsInnerClass.kt")
|
||||
public void testDelegateAsInnerClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateAsInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateByOtherProperty.kt")
|
||||
public void testDelegateByOtherProperty() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateByOtherProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateByTopLevelFun.kt")
|
||||
public void testDelegateByTopLevelFun() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateByTopLevelProperty.kt")
|
||||
public void testDelegateByTopLevelProperty() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateByTopLevelProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateForExtProperty.kt")
|
||||
public void testDelegateForExtProperty() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegateForExtPropertyInClass.kt")
|
||||
public void testDelegateForExtPropertyInClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/delegateForExtPropertyInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericDelegate.kt")
|
||||
public void testGenericDelegate() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/genericDelegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("getAsExtensionFun.kt")
|
||||
public void testGetAsExtensionFun() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("getAsExtensionFunInClass.kt")
|
||||
public void testGetAsExtensionFunInClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/getAsExtensionFunInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inClassVal.kt")
|
||||
public void testInClassVal() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/inClassVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inClassVar.kt")
|
||||
public void testInClassVar() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/inClassVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inTrait.kt")
|
||||
public void testInTrait() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/inTrait.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inferredPropertyType.kt")
|
||||
public void testInferredPropertyType() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/inferredPropertyType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateVar.kt")
|
||||
public void testPrivateVar() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/privateVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setAsExtensionFun.kt")
|
||||
public void testSetAsExtensionFun() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("setAsExtensionFunInClass.kt")
|
||||
public void testSetAsExtensionFunInClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/setAsExtensionFunInClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVal.kt")
|
||||
public void testTopLevelVal() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/topLevelVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVar.kt")
|
||||
public void testTopLevelVar() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/topLevelVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("twoPropByOneDelegete.kt")
|
||||
public void testTwoPropByOneDelegete() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/twoPropByOneDelegete.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valInInnerClass.kt")
|
||||
public void testValInInnerClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/valInInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("varInInnerClass.kt")
|
||||
public void testVarInInnerClass() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/varInInnerClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("vararg.kt")
|
||||
public void testVararg() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/delegatedProperty/vararg.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/elvis")
|
||||
public static class Elvis extends AbstractBlackBoxCodegenTest {
|
||||
public void testAllFilesPresentInElvis() throws Exception {
|
||||
@@ -3919,6 +4057,7 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
suite.addTest(Closures.innerSuite());
|
||||
suite.addTestSuite(ControlStructures.class);
|
||||
suite.addTest(DefaultArguments.innerSuite());
|
||||
suite.addTestSuite(DelegatedProperty.class);
|
||||
suite.addTestSuite(Elvis.class);
|
||||
suite.addTestSuite(Enum.class);
|
||||
suite.addTestSuite(ExclExcl.class);
|
||||
|
||||
Reference in New Issue
Block a user