1465418c2b
#KT-7151 Fixed
16 lines
321 B
Kotlin
16 lines
321 B
Kotlin
import java.io.*
|
|
|
|
public class C {
|
|
fun foo() {
|
|
try {
|
|
ByteArrayInputStream(ByteArray(10)).use { stream ->
|
|
// reading something
|
|
val c = stream.read()
|
|
println(c)
|
|
}
|
|
} catch (e: IOException) {
|
|
println(e)
|
|
}
|
|
|
|
}
|
|
} |