Typed throws not honored for call to generic closure in closure #82100
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Since all the closures have explicit
throws
annotations, I don't think this falls afoul of needingFullTypedThrows
.SourceKit agrees that
function
throws(Failure)
, yet thecatch
clause is inferred to catchany Error
.Reproduction
Expected behavior
this code should compile
Environment
swift-driver version: 1.120.5 Apple Swift version 6.1.2 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
Target: arm64-apple-macosx15.0
Additional information
This is very similar to #80193, and might be the same underlying issue.
The text was updated successfully, but these errors were encountered: