KTIJ-26627 [AA] Correctly handle object receivers of property accesses

Also remove redundant code from `canBePossibleToDropReceiver`

^KTIJ-26627 Fixed
This commit is contained in:
Roman Golyshev
2023-08-13 20:21:44 +02:00
parent 2db8f31966
commit b52d3c114f
7 changed files with 63 additions and 11 deletions
@@ -244,6 +244,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/extensionFromObject.kt");
}
@Test
@TestMetadata("extensionFunction_objectReceiverWithOtherThisInScope.kt")
public void testExtensionFunction_objectReceiverWithOtherThisInScope() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/extensionFunction_objectReceiverWithOtherThisInScope.kt");
}
@Test
@TestMetadata("extensionProperty_objectReceiverWithOtherThisInScope.kt")
public void testExtensionProperty_objectReceiverWithOtherThisInScope() throws Exception {
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/extensionProperty_objectReceiverWithOtherThisInScope.kt");
}
@Test
@TestMetadata("kdoc.kt")
public void testKdoc() throws Exception {