Avatar
catchがconditionalだと網羅チェックしてくれないとは書いてたんですが、catch .fooとかも一律でだめということですかね https://github.com/apple/swift-evolution/blob/main/proposals/0413-typed-throws.md
Note that the only way to write an exhaustive do...catch statement is to have an unconditional catch block. The dynamic checking provided by is or as patterns in the catch block cannot be used to make a catch exhaustive, even if the type specified is the same as the type thrown from the body of the do
This maintains proposals for changes and user-visible enhancements to the Swift Programming Language. - apple/swift-evolution