Skip to content

Instantly share code, notes, and snippets.

@RdeWilde
Last active March 3, 2019 12:41
Show Gist options
  • Save RdeWilde/74d76d5a4ab736184aa14808b00fc4c9 to your computer and use it in GitHub Desktop.
Save RdeWilde/74d76d5a4ab736184aa14808b00fc4c9 to your computer and use it in GitHub Desktop.
BigInteger.kt
expect class BigInteger(value: String) : Number, Comparable<BigInteger> {
}
// ...
typealias JvmBigInteger = java.math.BigInteger
actual class BigInteger actual constructor(value: String) : JvmBigInteger(value), Comparable<BigInteger> { // <<< Error below
// ..
}
// ..
// Actual class 'BigInteger' has no corresponding expected declaration The following declaration is incompatible because some supertypes are missing in the actual declaration:
// `public final expect class BigInteger : Number, Comparable<BigInteger>` defined in kmulti.bignumber in file BigInteger.kt
// Also
// Type parameter T of 'Comparable' has inconsistent values: java.math.BigDecimal!, kmulti.bignumber.BigDecimal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment