String.format does not support no locale #KT-22932

This commit is contained in:
Abduqodiri Qurbonzoda
2020-02-27 23:15:29 +03:00
parent f4d53c18a1
commit fc22cfa896
3 changed files with 33 additions and 1 deletions
+5 -1
View File
@@ -5,6 +5,7 @@
package test
import java.util.*
import kotlin.test.assertEquals
public actual fun assertTypeEquals(expected: Any?, actual: Any?) {
@@ -26,4 +27,7 @@ internal actual inline fun testOnNonJvm6And7(f: () -> Unit) {
}
}
public actual fun testOnJvm(action: () -> Unit) = action()
public actual fun testOnJs(action: () -> Unit) {}
public actual fun testOnJs(action: () -> Unit) {}
@Suppress("HasPlatformType", "UNCHECKED_CAST")
public fun <T> platformNull() = Collections.singletonList(null as T).first()