Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13752] SwiftSyntax unrecognized [self = foo] #314

keith opened this issue Oct 19, 2020 · 1 comment

[SR-13752] SwiftSyntax unrecognized [self = foo] #314

keith opened this issue Oct 19, 2020 · 1 comment
bug swift-format SwiftSyntax


Copy link

@keith keith commented Oct 19, 2020

Previous ID SR-13752
Radar rdar://problem/70446049
Original Reporter @keith
Type Bug

swift-syntax d518259

Additional Detail from JIRA
Votes 0
Component/s swift-format, SwiftSyntax
Labels Bug
Assignee None
Priority Medium

md5: f216403cfbb1ce9b46bd15205e13ac1e

Issue Description:

With this syntax:

let foo = "hi"
let bar = { [self = foo] in

swift-format errors with:

% .build/debug/swift-format lint /tmp/foo.swift
/tmp/foo.swift:2:11: error: file contains invalid or unrecognized Swift syntax.

Based on some cursory look it seems that the issue here is from SwiftSyntax and not swift-format

Copy link

@typesanitizer typesanitizer commented Oct 19, 2020

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
bug swift-format SwiftSyntax
None yet

No branches or pull requests

2 participants