d0f0b9e355
For internal members new names are generated, So, references to them from Java will be broken
15 lines
376 B
Kotlin
Vendored
15 lines
376 B
Kotlin
Vendored
import java.io.ByteArrayInputStream
|
|
import java.io.ByteArrayOutputStream
|
|
import java.io.IOException
|
|
|
|
class C {
|
|
@Throws(IOException::class)
|
|
fun foo() {
|
|
ByteArrayInputStream(ByteArray(10)).use { input ->
|
|
ByteArrayOutputStream().use { output ->
|
|
output.write(input.read())
|
|
output.write(0)
|
|
}
|
|
}
|
|
}
|
|
} |