blob: 75afd817e44c704cf8261ce4105302132d267e6b [file] [log] [blame]
import java.io.ByteArrayInputStream
import java.io.IOException
class C {
@Throws(IOException::class)
fun foo() {
ByteArrayInputStream(ByteArray(10)).use { stream ->
// reading something
val c = stream.read()
println(c)
}
}
}