Files
kotlin/compiler/testData/codegen/boxInline/complex/forEachLine.1.kt
2014-12-23 15:18:47 +03:00

24 lines
298 B
Kotlin

import test.*
import java.util.*
fun sample(): Input {
return Input("Hello", "World");
}
fun testForEachLine() {
val list = ArrayList<String>()
val reader = sample()
reader.forEachLine{
list.add(it)
}
}
fun box(): String {
testForEachLine()
return "OK"
}