Drop inline-only extensions and hide non-inline-only ones that are available now as mapped methods of mapped builtins.
#KT-10887 Fixed
This commit is contained in:
@@ -41,4 +41,12 @@ class ExceptionTest {
|
||||
val bytes = assertNotNull(byteBuffer.toByteArray())
|
||||
assertTrue(bytes.size > 10)
|
||||
}
|
||||
|
||||
@test fun changeStackTrace() {
|
||||
val exception = RuntimeException("Fail")
|
||||
var stackTrace = exception.stackTrace
|
||||
stackTrace = stackTrace.dropLast(1).toTypedArray()
|
||||
exception.stackTrace = stackTrace
|
||||
assertArrayNotSameButEquals(stackTrace, exception.stackTrace)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user