Last active
March 3, 2019 12:41
-
-
Save RdeWilde/74d76d5a4ab736184aa14808b00fc4c9 to your computer and use it in GitHub Desktop.
BigInteger.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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