Anyone how I should implement BigInteger.ZERO? I t...
# multiplatform
r
Anyone how I should implement BigInteger.ZERO? I tried lateinit, init-block, in companion object, as extension. None seems to work well 😞
Copy code
expect class BigInteger(value: String) : /*Number,*/ Comparable<BigInteger> {
   // ...
    companion object {
        val ZERO: BigInteger = BigInteger("0")
    }
}
This is what I have now, but gives me an error on
BigInteger
Expected property cannot have an initializer
, also I cannot use
by lazy