Call chain --> Sequence: don't report if first call is 'groupingBy'
#KT-27104 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b500239bd1
commit
8fc5fefc7f
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
list.<caret>map { it * 2 }.map { it * 3 }.map { it * 4 }.groupingBy { it }
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
list.asSequence().map { it * 2 }.map { it * 3 }.map { it * 4 }.groupingBy { it }
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(list: List<Int>) {
|
||||
list.<caret>groupingBy { it }.reduce { _, acc, _ -> acc }
|
||||
}
|
||||
Reference in New Issue
Block a user