"Call chain may be simplified": fix false positive on Java Map
So #KT-25089 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c9a784ebb0
commit
a059d50c8f
+9
@@ -0,0 +1,9 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
import java.util.*
|
||||
|
||||
class MyMap: HashMap<String, String>()
|
||||
|
||||
fun test(data: MyMap) {
|
||||
val result = data.<caret>map { "${it.key}: ${it.value}" }.joinToString("\n")
|
||||
}
|
||||
Reference in New Issue
Block a user