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
Tijl
12/02/2020, 8:25 AM
add a cast, ignore the warning about the cast not being needed