MUST_BE_INITIALIZED: take into account containingDeclaration's modality
^KT-58587 Fixed Review: https://jetbrains.team/p/kt/reviews/10136 This commit is important in scope of KT-57553. It makes the migration more smooth. Other related tests: - testUninitializedOrReassignedVariables - testAugmentedAssignmentInInitializer
This commit is contained in:
+12
@@ -2948,6 +2948,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/LocalDeclarations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MustBeInitializedEffectivelyFinalOff.kt")
|
||||
public void testMustBeInitializedEffectivelyFinalOff() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/MustBeInitializedEffectivelyFinalOff.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MustBeInitializedEffectivelyFinalOn.kt")
|
||||
public void testMustBeInitializedEffectivelyFinalOn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/MustBeInitializedEffectivelyFinalOn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SetterWithExplicitType.kt")
|
||||
public void testSetterWithExplicitType() throws Exception {
|
||||
|
||||
+12
@@ -2948,6 +2948,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/LocalDeclarations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MustBeInitializedEffectivelyFinalOff.kt")
|
||||
public void testMustBeInitializedEffectivelyFinalOff() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/MustBeInitializedEffectivelyFinalOff.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("MustBeInitializedEffectivelyFinalOn.kt")
|
||||
public void testMustBeInitializedEffectivelyFinalOn() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/backingField/MustBeInitializedEffectivelyFinalOn.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SetterWithExplicitType.kt")
|
||||
public void testSetterWithExplicitType() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user