[FIR] Fix collecting member candidates on receiver with smartcast

^KT-51460 Fixed
^KT-51827
This commit is contained in:
Dmitriy Novozhilov
2022-04-05 19:21:55 +04:00
committed by teamcity
parent 51bd0fd2db
commit 6e2402620f
29 changed files with 1378 additions and 34 deletions
@@ -25212,6 +25212,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/resolve/resolveWithoutGenerics.kt");
}
@Test
@TestMetadata("smartcastToMoreSpecificProperty.kt")
public void testSmartcastToMoreSpecificProperty() throws Exception {
runTest("compiler/testData/diagnostics/tests/resolve/smartcastToMoreSpecificProperty.kt");
}
@Test
@TestMetadata("superInvoke.kt")
public void testSuperInvoke() throws Exception {
@@ -28076,6 +28082,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
runTest("compiler/testData/diagnostics/tests/smartCasts/kt3993.kt");
}
@Test
@TestMetadata("kt51460.kt")
public void testKt51460() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/kt51460.kt");
}
@Test
@TestMetadata("kt5427.kt")
public void testKt5427() throws Exception {
@@ -32901,6 +32913,30 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
public void testProtectedInternal() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/protectedInternal.kt");
}
@Test
@TestMetadata("protectedVisibilityAndSmartcast_fakeOverride.kt")
public void testProtectedVisibilityAndSmartcast_fakeOverride() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/protectedVisibilityAndSmartcast_fakeOverride.kt");
}
@Test
@TestMetadata("protectedVisibilityAndSmartcast_noOverride.kt")
public void testProtectedVisibilityAndSmartcast_noOverride() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/protectedVisibilityAndSmartcast_noOverride.kt");
}
@Test
@TestMetadata("protectedVisibilityAndSmartcast_overrideChangesType.kt")
public void testProtectedVisibilityAndSmartcast_overrideChangesType() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/protectedVisibilityAndSmartcast_overrideChangesType.kt");
}
@Test
@TestMetadata("protectedVisibilityAndSmartcast_overrideSameType.kt")
public void testProtectedVisibilityAndSmartcast_overrideSameType() throws Exception {
runTest("compiler/testData/diagnostics/tests/visibility/protectedVisibilityAndSmartcast_overrideSameType.kt");
}
}
@Nested