Files
kotlin-fork/compiler/testData/codegen/boxInline/forEachLine/1.kt
T
2014-03-03 15:43:35 +04:00

24 lines
303 B
Kotlin

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