Files
kotlin/idea/testData/refactoring/inline/function/fromIntellij/CallInFor.kt.after

15 lines
353 B
Plaintext
Vendored

class C {
fun doSomething() {
val text = "hello"
val it = getSomeObjects(text).iterator()
while (it.hasNext()) {
println("text = " + it.next())
}
}
private fun getSomeObjects(text: String): Collection<Any> {
val list = arrayListOf<Any>()
list.add(text)
return list
}
}