Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0801cc12da5af28d8009eb66d070f37079ab755d
/
.
/
idea
/
testData
/
intentions
/
loopToCallChain
/
toCollection
/
addAfterLoop.kt.after
blob: 9da61bd02b51c99fc51a86ad6832835f360e7376 [
file
] [
log
] [
blame
]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'toMutableList()'"
// IS_APPLICABLE_2: false
import
java
.
util
.
ArrayList
fun foo
(
map
:
Map
<
Int
,
String
>):
List
<
String
>
{
val result
=
map
.
values
.
toMutableList
()
result
.
add
(
""
)
return
result
}