Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
ec80c21fd118667fdb2e851da7eea5d76d95eb52
/
.
/
j2k
/
testData
/
fileOrElement
/
tryWithResource
/
MultipleResources.kt
blob: 2eacfccde510428d72d0e51a9a0d138f0ca84ced [
file
] [
log
] [
blame
]
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
)
}
}
}
}