Hi, I need to format strings, so I copied the sni...
# multiplatform
l
Hi, I need to format strings, so I copied the snippet from the kotlinglang.org
Copy code
// Common
expect fun formatString(source: String, vararg args: Any): String

// JVM
actual fun formatString(source: String, vararg args: Any) =
    String.format(source, args)
but when I run the tests, I get
java.util.IllegalFormatConversionException: x != [Ljava.lang.Object;
for this line
formatString("%04X", value)
(value is Long). for the Native it part works (snipped copied from a github thread). After looking through all the internet I couldn’t find a solution or reason