Byte iterator only available for buffered input streams,
InputStream.buffered() returns BufferedInputStream.
This commit is contained in:
@@ -25,7 +25,7 @@ class OldStdlibTest() {
|
||||
x [index] = index.toByte()
|
||||
}
|
||||
|
||||
x.inputStream().use { stream ->
|
||||
x.inputStream().buffered().use { stream ->
|
||||
for(b in stream) {
|
||||
println(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user