Migrate impl to actual in libraries projects

This commit is contained in:
Stanislav Erokhin
2017-09-15 15:55:55 +03:00
parent 481cbd0850
commit 91a99b4726
10 changed files with 17 additions and 17 deletions
@@ -9,7 +9,7 @@ private val inited = AtomicBoolean()
private val lock = ReentrantLock()
private val contributors = ArrayList<AsserterContributor>()
internal impl fun lookupAsserter(): Asserter = lookup()
internal actual fun lookupAsserter(): Asserter = lookup()
private val defaultAsserter = DefaultAsserter()
@@ -43,7 +43,7 @@ private fun <T : Throwable> assertFailsWithImpl(exceptionClass: Class<T>, messag
/** Asserts that a [block] fails with a specific exception of type [exceptionClass] being thrown. */
impl fun <T : Throwable> assertFailsWith(exceptionClass: KClass<T>, message: String?, block: () -> Unit): T = assertFailsWithImpl(exceptionClass.java, message, block)
actual fun <T : Throwable> assertFailsWith(exceptionClass: KClass<T>, message: String?, block: () -> Unit): T = assertFailsWithImpl(exceptionClass.java, message, block)
/**
@@ -51,7 +51,7 @@ impl fun <T : Throwable> assertFailsWith(exceptionClass: KClass<T>, message: Str
* to implement in your unit test output
*/
@InlineOnly
impl inline fun todo(@Suppress("UNUSED_PARAMETER") block: () -> Unit) {
actual inline fun todo(@Suppress("UNUSED_PARAMETER") block: () -> Unit) {
System.out.println("TODO at " + currentStackTrace()[0])
}