Files
kotlin-fork/j2k/testData/fileOrElement/tryWithResource/MultipleResources.kt
T
2015-09-18 15:44:18 +03:00

13 lines
302 B
Kotlin
Vendored

import java.io.*
class C {
@Throws(IOException::class)
internal fun foo() {
ByteArrayInputStream(ByteArray(10)).use { input ->
ByteArrayOutputStream().use { output ->
output.write(input.read())
output.write(0)
}
}
}
}