Bad diagnostics with multiple typed throws #74554
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
typed throws
Feature → error handling → throws & rethrows: Typed throws
Description
Multiple throws of the same type inside of a function don't compile (even though I'd expect them to), and instead produce FOUR bad diagnostics.
Reproduction
Expected behavior
Code compiles since all errors are handled.
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
This is related to #74555, but this also doesn't compile:
The text was updated successfully, but these errors were encountered: