Report error on state in multi-file class with -Xmultifile-parts-inherit
Simplify MultifileClassPartCodegen, remove related tests and change some tests to use const val instead of val because backing fields for const properties are stored in the facade, not parts #KT-23701 Fixed
This commit is contained in:
+11
-51
@@ -15714,24 +15714,24 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/multifileClasses/optimized"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("callableRefToConstVal.kt")
|
||||
public void testCallableRefToConstVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToConstVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callableRefToFun.kt")
|
||||
public void testCallableRefToFun() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToFun.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callableRefToInternalValInline.kt")
|
||||
public void testCallableRefToInternalValInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToInternalValInline.kt");
|
||||
@TestMetadata("callableRefToInternalConstValInline.kt")
|
||||
public void testCallableRefToInternalConstValInline() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToInternalConstValInline.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callableRefToPrivateVal.kt")
|
||||
public void testCallableRefToPrivateVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToPrivateVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("callableRefToVal.kt")
|
||||
public void testCallableRefToVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToVal.kt");
|
||||
@TestMetadata("callableRefToPrivateConstVal.kt")
|
||||
public void testCallableRefToPrivateConstVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/callableRefToPrivateConstVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("calls.kt")
|
||||
@@ -15739,50 +15739,10 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/calls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("deferredStaticInitialization.kt")
|
||||
public void testDeferredStaticInitialization() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/deferredStaticInitialization.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegatedVal.kt")
|
||||
public void testDelegatedVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/delegatedVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializePrivateVal.kt")
|
||||
public void testInitializePrivateVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/initializePrivateVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializePublicVal.kt")
|
||||
public void testInitializePublicVal() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/initializePublicVal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overlappingFuns.kt")
|
||||
public void testOverlappingFuns() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/overlappingFuns.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("overlappingVals.kt")
|
||||
public void testOverlappingVals() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/overlappingVals.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valAccessFromInlineFunCalledFromJava.kt")
|
||||
public void testValAccessFromInlineFunCalledFromJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/valAccessFromInlineFunCalledFromJava.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valAccessFromInlinedToDifferentPackage.kt")
|
||||
public void testValAccessFromInlinedToDifferentPackage() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/valAccessFromInlinedToDifferentPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valWithAccessor.kt")
|
||||
public void testValWithAccessor() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/multifileClasses/optimized/valWithAccessor.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user