Generic typed errors cannot be used without appearing outside the "throws argument".
#74383
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
typed throws
Feature → error handling → throws & rethrows: Typed throws
Description / Reproduction
If a generic error is "used in the function signature", the code compiles:
But otherwise, no.
Expected behavior
SE-0413 says it should work.
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
The text was updated successfully, but these errors were encountered: