[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:
committed by
Space Team
parent
008d670469
commit
6661a66fc3
+12
@@ -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 {
|
||||
|
||||
+12
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user