Closed alanzeino closed 6 years ago
This looks like a source compatibility bug, the code as written should be able to use the new Int
-based overloads just fine. I'll look around to see if it's been reported yet.
Important to note; we use -Werror
and SWIFT_WARNINGS_AS_ERRORS = YES
. These are likely warnings being converted to errors in our codebase.
From Apple's perspective, new warnings aren't source incompatibility.
new warnings aren't source incompatibility
That's true, but what I'm trying to say is that shouldn't trigger a warning: 3
should be passed as Int
just like it is passed as IndexDistance
right now.
Yeah you are right. IndexDistance
is deprecated but if it's passing it as Int
then this shouldn't appear.
@available(*, deprecated, message: "all index distances are now of type Int")
public typealias IndexDistance = Int