Failed to produce diagnostic for expression with misplaced '?' #81710
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The included simple code produces the "Failed to produce diagnostic for expression" error on compilation.
The issue is the extraneous '?' in the reference to
action
. The compiler should be able to deal with this and highlight the actual issue.Reproduction
This code can be built in an Xcode playground, or by putting it in a file and compiling with swiftc
Expected behavior
The compiler should highlight the actual issue, which is the extraneous '?' in the reference to
action
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
No response
The text was updated successfully, but these errors were encountered: