https://kotlinlang.org logo
#ios
Title
# ios
n

Nikolay Kasyanov

09/06/2021, 11:35 AM
👋 let’s say I have this:
Copy code
public 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?
2 Views