Disallow extension properties with backing fields
#KT-1682 Fixed
This commit is contained in:
@@ -500,16 +500,6 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/class/delegatedPublicVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPublicVal.kt")
|
||||
public void testExtensionPublicVal() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/class/extensionPublicVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPublicVar.kt")
|
||||
public void testExtensionPublicVar() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/class/extensionPublicVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalVal.kt")
|
||||
public void testInternalVal() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/class/internalVal.kt");
|
||||
@@ -608,16 +598,6 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/rename/delegatedAndProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionAndExtension.kt")
|
||||
public void testExtensionAndExtension() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/rename/extensionAndExtension.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionAndProperty.kt")
|
||||
public void testExtensionAndProperty() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/rename/extensionAndProperty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAndProperty.kt")
|
||||
public void testPropertyAndProperty() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/rename/propertyAndProperty.kt");
|
||||
@@ -641,16 +621,6 @@ public class WriteFlagsTestGenerated extends AbstractWriteFlagsTest {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/trait/delegatedPublicVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPublicVal.kt")
|
||||
public void testExtensionPublicVal() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/trait/extensionPublicVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionPublicVar.kt")
|
||||
public void testExtensionPublicVar() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/trait/extensionPublicVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("internalVal.kt")
|
||||
public void testInternalVal() throws Exception {
|
||||
doTest("compiler/testData/writeFlags/property/classObject/trait/internalVal.kt");
|
||||
|
||||
+5
-30
@@ -2272,6 +2272,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/extensionProperties")
|
||||
public static class ExtensionProperties extends AbstractBlackBoxCodegenTest {
|
||||
@TestMetadata("accessorForPrivateSetter.kt")
|
||||
public void testAccessorForPrivateSetter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/accessorForPrivateSetter.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExtensionProperties() throws Exception {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("compiler/testData/codegen/box/extensionProperties"), Pattern.compile("^(.+)\\.kt$"), true);
|
||||
}
|
||||
@@ -2286,11 +2291,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/inClassLongTypeInReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inClassWithEmptySetter.kt")
|
||||
public void testInClassWithEmptySetter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/inClassWithEmptySetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inClassWithGetter.kt")
|
||||
public void testInClassWithGetter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/inClassWithGetter.kt");
|
||||
@@ -2321,21 +2321,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/topLevelLongTypeInReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelSetterLongTypeInReceiver.kt")
|
||||
public void testTopLevelSetterLongTypeInReceiver() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/topLevelSetterLongTypeInReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelWithGetter.kt")
|
||||
public void testTopLevelWithGetter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/topLevelWithGetter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelWithSetter.kt")
|
||||
public void testTopLevelWithSetter() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/extensionProperties/topLevelWithSetter.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/fakeOverride")
|
||||
@@ -2387,16 +2372,6 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest("compiler/testData/codegen/box/fieldRename/genericPropertyWithItself.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inPackage.kt")
|
||||
public void testInPackage() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/fieldRename/inPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
doTest("compiler/testData/codegen/box/fieldRename/simple.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/finally")
|
||||
|
||||
@@ -2774,11 +2774,6 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTestCompiledKotlin("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtVarLongWithSet.kt")
|
||||
public void testExtVarLongWithSet() throws Exception {
|
||||
doTestCompiledKotlin("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLongWithSet.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test innerSuite() {
|
||||
|
||||
-5
@@ -1252,11 +1252,6 @@ public class LazyResolveRecursiveComparingTestGenerated extends AbstractLazyReso
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLong.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ExtVarLongWithSet.kt")
|
||||
public void testExtVarLongWithSet() throws Exception {
|
||||
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadJava/compiledKotlin/prop/defaultAccessors/ExtVarLongWithSet.kt");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Test innerSuite() {
|
||||
|
||||
Reference in New Issue
Block a user