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:
committed by
TeamCityServer
parent
ce767046eb
commit
3c8693758b
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user