"Call on collection type may be reduced": fix false positive with mapNotNull, generic lambda block and new inference
#KT-32801 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
6ee4b5e393
commit
4638a97bbc
+5
@@ -1990,6 +1990,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
|
||||
runTest("idea/testData/inspectionsLocal/collections/uselessCallOnCollection/MapNotNullTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapNotNullWithGenericLambda.kt")
|
||||
public void testMapNotNullWithGenericLambda() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/collections/uselessCallOnCollection/MapNotNullWithGenericLambda.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("MapNotNullWithLambda.kt")
|
||||
public void testMapNotNullWithLambda() throws Exception {
|
||||
runTest("idea/testData/inspectionsLocal/collections/uselessCallOnCollection/MapNotNullWithLambda.kt");
|
||||
|
||||
Reference in New Issue
Block a user