Remove DefaultAsserter() constructor-like function in kotlin-test
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user