KTIJ-28385 [AA] Support SAM constructors in computeImportableName
This allows to properly report them as used in `KtFirImportOptimizer` This change will also be important for properly fixing KTIJ-28167, since `computeImportableName` is also used in reference shortener ^KTIJ-28385 Fixed
This commit is contained in:
committed by
Space Team
parent
9ec469e3c3
commit
31291fc8fa
+12
@@ -232,6 +232,18 @@ public class FirStandaloneNormalAnalysisSourceModuleAnalysisApiImportOptimizerTe
|
||||
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/usedInvokeOperatorImport.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("usedNestedSamInterface_constructorCall.kt")
|
||||
public void testUsedNestedSamInterface_constructorCall() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/usedNestedSamInterface_constructorCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("usedNestedSamInterface_constructorReference.kt")
|
||||
public void testUsedNestedSamInterface_constructorReference() throws Exception {
|
||||
runTest("analysis/analysis-api/testData/components/importOptimizer/analyseImports/usedNestedSamInterface_constructorReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("usedObject_invokeOperator.kt")
|
||||
public void testUsedObject_invokeOperator() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user