KTIJ-26959 [AA] Do not ignore underscore named properties in KtFirImportOptimizer

After the fix for the KT-60904 issue (c963eadb),
there are unnamed declarations created even for
the unused variables in destructuring declarations

Because of this, we can actually align testData
for K1 and K2. It seems like KT-59504 is no
longer relevant and can be marked as obsolete
because of the KT-60904 fix

^KTIJ-26959 Fixed
This commit is contained in:
Roman Golyshev
2023-09-07 17:43:15 +02:00
committed by teamcity
parent 9a2307ad44
commit f5307173b5
10 changed files with 68 additions and 8 deletions
@@ -136,6 +136,18 @@ public class Fe10IdeNormalAnalysisSourceModuleAnalysisApiImportOptimizerTestGene
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/unusedTypeAsVarargType.kt");
}
@Test
@TestMetadata("unusedType_underscoreNameInCatchSection.kt")
public void testUnusedType_underscoreNameInCatchSection() throws Exception {
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/unusedType_underscoreNameInCatchSection.kt");
}
@Test
@TestMetadata("unusedType_underscoreVariableInDestructuringDeclaration.kt")
public void testUnusedType_underscoreVariableInDestructuringDeclaration() throws Exception {
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/unusedType_underscoreVariableInDestructuringDeclaration.kt");
}
@Test
@TestMetadata("usedAliasedAndRegularImportsFromSamePackage.kt")
public void testUsedAliasedAndRegularImportsFromSamePackage() throws Exception {