"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:
Toshiaki Kameyama
2020-01-26 23:15:48 +09:00
committed by Yan Zhulanow
parent 6ee4b5e393
commit 4638a97bbc
3 changed files with 20 additions and 1 deletions
@@ -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");