Commonize AssertionError(message, cause) constructor

This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-09 00:20:42 +03:00
committed by Space Team
parent 8e995e6c62
commit c961c15729
7 changed files with 9 additions and 5 deletions
@@ -82,7 +82,7 @@ public actual open class ClassCastException actual constructor(message: String?)
public actual open class AssertionError
@SinceKotlin("1.4")
constructor(message: String?, cause: Throwable?) : Error(message, cause) {
actual constructor(message: String?, cause: Throwable?) : Error(message, cause) {
actual constructor() : this(null)
constructor(message: String?) : this(message, null)
actual constructor(message: Any?) : this(message.toString(), message as? Throwable)