KTIJ-25232 [FIR IDE] Do not shorten properties with non-trivial receiver
If property call receiver is something real (like another property or a function call), then it should not be shortened because the semantics might change ^KTIJ-25232 Fixed
This commit is contained in:
+12
@@ -298,6 +298,18 @@ public class FirStandaloneNormalAnalysisSourceModuleReferenceShortenerTestGenera
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/sameTypeNamesWithinSameScopes.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("selfPropertyChain.kt")
|
||||
public void testSelfPropertyChain() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/selfPropertyChain.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("selfPropertyChain1.kt")
|
||||
public void testSelfPropertyChain1() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/referenceShortener/referenceShortener/selfPropertyChain1.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("shortenAlreadyImportedClass.kt")
|
||||
public void testShortenAlreadyImportedClass() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user