[swift-users] Handle deprecated enum cases from a library
Charles Srstka
cocoadev at charlessoft.com
Sun Nov 5 12:13:22 CST 2017
> On Nov 5, 2017, at 10:39 AM, Dennis Weissmann <dennis at dennisweissmann.me> wrote:
>
>> You can delete the default case here, and your switch will still be exhaustive
> That's exactly my problem! It is *not*.
>
> When I delete the default clause, the compiler warns that the switch is not exhaustive and fixits suggest to add the "missing" deprecated cases.
>
> - Dennis
Hi Dennis,
Ah, I see—although the switch should be considered exhaustive since you have covered all the possible cases, the compiler is claiming that it is not. I would probably consider this to be a compiler bug. Have you considered filing a report at bugs.swift.org <http://bugs.swift.org/>?
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171105/49c3c70c/attachment.html>
More information about the swift-users
mailing list