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
@@ -0,0 +1,5 @@
// PROBLEM: none
// WITH_RUNTIME
fun test(map: Map<String, Int>): Map.Entry<String, Int>? {
return map.<caret>asSequence().firstOrNull()
}