FIR: handle synthetic properties with unstable smartcast

Synthetic properties from Java getter/setters need to be specially
handled so that candidates from such symbols are marked with unstable.
This commit is contained in:
Tianyu Geng
2021-06-09 15:25:16 -07:00
committed by TeamCityServer
parent ce767046eb
commit 3c8693758b
9 changed files with 90 additions and 40 deletions
@@ -26664,6 +26664,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
runTest("compiler/testData/diagnostics/tests/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.kt");
}
@Test
@TestMetadata("syntheticPropertyOnUnstableSmartcast.kt")
public void testSyntheticPropertyOnUnstableSmartcast() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/inference/syntheticPropertyOnUnstableSmartcast.kt");
}
@Test
@TestMetadata("unneededUnstableSmartcast.kt")
public void testUnneededUnstableSmartcast() throws Exception {
@@ -26664,6 +26664,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
runTest("compiler/testData/diagnostics/tests/smartCasts/inference/stabilityOfSmartcastsAgainstGenericFunctions.kt");
}
@Test
@TestMetadata("syntheticPropertyOnUnstableSmartcast.kt")
public void testSyntheticPropertyOnUnstableSmartcast() throws Exception {
runTest("compiler/testData/diagnostics/tests/smartCasts/inference/syntheticPropertyOnUnstableSmartcast.kt");
}
@Test
@TestMetadata("unneededUnstableSmartcast.kt")
public void testUnneededUnstableSmartcast() throws Exception {