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:
Ilya Gorbunov
2016-05-06 17:28:27 +03:00
parent 9bd3be68f7
commit 9bfb226948
3 changed files with 12 additions and 23 deletions
+8
View File
@@ -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)
}
}