Files
kotlin-fork/idea/testData/intentions/loopToCallChain/toCollection/toMutableSet.kt.after
T
2016-08-23 22:47:42 +03:00

9 lines
248 B
Plaintext
Vendored

// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'toMutableSet()'"
// IS_APPLICABLE_2: false
import java.util.HashSet
fun foo(map: Map<Int, String>): MutableCollection<String> {
val <caret>result = map.values.toMutableSet()
return result
}