Clean TODOs and commented code which works.
This commit is contained in:
committed by
Andrey Breslav
parent
266f6ad81a
commit
fb7034a472
@@ -29,12 +29,11 @@ class ExceptionTest {
|
||||
|
||||
fun assertPrintStackTraceStream(t: Throwable) {
|
||||
val byteBuffer = ByteArrayOutputStream()
|
||||
/*
|
||||
// TODO compiler error
|
||||
|
||||
PrintStream(byteBuffer).use {
|
||||
t.printStackTrace(it)
|
||||
}
|
||||
*/
|
||||
|
||||
val stream = PrintStream(byteBuffer)
|
||||
stream.use {
|
||||
t.printStackTrace(stream)
|
||||
|
||||
Reference in New Issue
Block a user