Swift 6 rethrows forcing "try" for a non-throwable closure #76769
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The following code snippet is not compiling under Swift 6, it works fine in Swift 5:
This is the workaround that works
Which is pretty much the same thing.
Environment
swift-driver version: 1.115
Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx15.0
The text was updated successfully, but these errors were encountered: