You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not limited to just InitializerClauseSyntax bindings; assignments to already-declared variables via AssignmentExprSyntax exhibit the same behavior.
The text was updated successfully, but these errors were encountered:
$ .build/debug/swift-parser-cli print-diags <<'EOF'let x= 5x =5EOF
=== stdin:1 ===
1 │ let x= 5
│ ╰─ error: '=' must have consistent whitespace on both sides
2 │ x =5
│ ╰─ error: '=' must have consistent whitespace on both sides
3 │
Issue Kind
Bad Diagnostic Produced
Source Code
Description
In
swiftc
, this produces an error:In SwiftParser, a valid syntax tree is produced with no diagnostics:
This is not limited to just
InitializerClauseSyntax
bindings; assignments to already-declared variables viaAssignmentExprSyntax
exhibit the same behavior.The text was updated successfully, but these errors were encountered: