[Tests] Add tests on smartcasts on static Java fields

Current behavior for different modules is undesired, will be fixed in
the next commit

^KT-58279
This commit is contained in:
Dmitry Savvinov
2024-01-17 13:26:31 +01:00
committed by Space Team
parent 008d670469
commit 6661a66fc3
8 changed files with 146 additions and 0 deletions
@@ -36933,6 +36933,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/reassignedInRhs.kt");
}
@Test
@TestMetadata("staticJavaFieldFromOtherModule.kt")
public void testStaticJavaFieldFromOtherModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/staticJavaFieldFromOtherModule.kt");
}
@Test
@TestMetadata("staticJavaFieldFromSameModule.kt")
public void testStaticJavaFieldFromSameModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/staticJavaFieldFromSameModule.kt");
}
@Test
@TestMetadata("varAsUse.kt")
public void testVarAsUse() throws Exception {
@@ -36933,6 +36933,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/reassignedInRhs.kt");
}
@Test
@TestMetadata("staticJavaFieldFromOtherModule.kt")
public void testStaticJavaFieldFromOtherModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/staticJavaFieldFromOtherModule.kt");
}
@Test
@TestMetadata("staticJavaFieldFromSameModule.kt")
public void testStaticJavaFieldFromSameModule() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/variables/staticJavaFieldFromSameModule.kt");
}
@Test
@TestMetadata("varAsUse.kt")
public void testVarAsUse() throws Exception {