Nikolay Kasyanov
09/06/2021, 11:35 AMpublic expect class PlatformDecimal
public expect value class Decimal(public val impl: PlatformDecimal)
// in iosMain:
@Suppress("CONFLICTING_OVERLOADS")
public actual typealias PlatformDecimal = NSDecimalNumber
public actual value class Decimal(public val impl: NSDecimalNumber) {
If I make a framework out of it, all instances of Decimal
have type of id
(I’d expect NSDecimalNumber
there) in the generated Objective-C header. Is this a known limitation?