Swift 6 typed-throws unable to detect exhaustive catch statements #74555
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
typed throws
Feature → error handling → throws & rethrows: Typed throws
Description
Consider the example below. Both
Error.a
andError.b
are caught, but the compiler is unable to infer that.Reproduction
Expected behavior
Code compiles
Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
Target: arm64-apple-macosx14.0
Additional information
No response
The text was updated successfully, but these errors were encountered: