Change necessary labels in "Call on collection type may be reduced"
#KT-24492 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5e7d974767
commit
6532916dd2
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// FIX: Change call to 'map'
|
||||
|
||||
fun foo(c: Collection<String>, f: Boolean) {
|
||||
c.<caret>mapNotNull {
|
||||
if (f) {
|
||||
return@mapNotNull
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user