We are having issues with type inference. I just a...
# multiplatform
p
We are having issues with type inference. I just added the watchos targets as well as the io targets and created a common source set for them (with the hierachical structure enabled). Now the code accessing NSDateComponents does no longer compile. https://developer.apple.com/documentation/foundation/nsdatecomponents/1411355-hour The issue is that
NSDateComponents().hour
is a
Long
in the iosX64Main source set and a
Int
in the
watchOsArm64Main
source set. Is there any way around that?
t
add a cast, ignore the warning about the cast not being needed
e
Use
.convert()
🆒 1