Add test on data-flow
Idea is to intersect similar smartcasts on similar properties coming from *different* instances (something like 'this.x == null && other.x == null' ). It checks that we distinguish subjects of such smartcasts properly. Currently behavior is undesired, see KT-27260
This commit is contained in:
@@ -19377,6 +19377,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartCastOnWhen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartcastOnSameFieldOfDifferentInstances.kt")
|
||||
public void testSmartcastOnSameFieldOfDifferentInstances() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/smartcastOnSameFieldOfDifferentInstances.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("thisWithLabel.kt")
|
||||
public void testThisWithLabel() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/smartCasts/thisWithLabel.kt");
|
||||
|
||||
Reference in New Issue
Block a user