Remove DefaultAsserter() constructor-like function in kotlin-test

This commit is contained in:
Abduqodiri Qurbonzoda
2021-03-25 19:06:54 +03:00
parent 968099fbec
commit c46d71d4ac
@@ -20,13 +20,4 @@ object DefaultAsserter : Asserter {
override fun fail(message: String?, cause: Throwable?): Nothing {
throw AssertionErrorWithCause(message, cause)
}
}
@Deprecated(
"DefaultAsserter is an object now, constructor call is not required anymore",
ReplaceWith("DefaultAsserter", "kotlin.test.DefaultAsserter"),
DeprecationLevel.ERROR
)
@kotlin.js.JsName("DefaultAsserterConstructor")
@Suppress("FunctionName")
fun DefaultAsserter(): DefaultAsserter = DefaultAsserter
}