This is a bit nuts :thinking_face: `expect class ...
# multiplatform
m
This is a bit nuts 🤔
expect class Platform_TimeZone
// common
actual typealias Platform_TimeZone = ZoneId
// JVM - error because incompatible modality (ZoneId is abstract)
actual typealias Platform_TimeZone = NSTimeZone
// iOS - works fine If I make the expected class abstract, then it's the other way round 😞 Any way to work around that without wrapping everything in a new class?
d
It's kinda annoying that it works like this. You didn't declare any attributes of the type, I don't understand that an abstract type is not a valid representation of it
j
Provided you don't have a constructor in declared in the expect, seems just like a bug
😞 1
m