"Call chain may be simplified": fix false positive on Java Map

So #KT-25089 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-07-25 04:23:04 +03:00
committed by Mikhail Glukhikh
parent c9a784ebb0
commit a059d50c8f
4 changed files with 36 additions and 7 deletions
@@ -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")
}