Regression compiling non-throwing compactMap
#74558
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
throws & rethrows
Feature → error handling: throws & rethrows
type checker
Area → compiler: Semantic analysis
Description
The following code compiles fine with Swift 5.x, but Swift 6 produces a bogus diagnostic.
Reproduction
Expected behavior
The code should compile fine, but instead produces
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
I haven't been able to reduce this further without
NSView
.The text was updated successfully, but these errors were encountered: