Redundant 'asSequence' call: don't report when reciever type is Map

#KT-41338 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-08-26 20:13:01 +09:00
committed by Vladimir Dolzhenko
parent 78493395c3
commit 3f7aab6fae
3 changed files with 14 additions and 0 deletions
@@ -1626,6 +1626,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/collections/redundantAsSequence/hasLineBreak.kt");
}
@TestMetadata("map.kt")
public void testMap() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/redundantAsSequence/map.kt");
}
@TestMetadata("notTermination.kt")
public void testNotTermination() throws Exception {
runTest("idea/testData/inspectionsLocal/collections/redundantAsSequence/notTermination.kt");