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

Formatted code does not compile anymore when throwing an error with a comment between the error type and its init arguments with the comments crossing the max column width #872

Open
Frizlab opened this issue Nov 6, 2024 · 1 comment

Comments

@Frizlab
Copy link

Frizlab commented Nov 6, 2024

Alright the title says it all but an example will probably help:

throw MyError/*Some comment; why not? Swift syntax allows it, though it’s very very weird…*/()

This will be formatted like this (assuming 80-col max width and tab indents):

throw
	MyError /*Some comment; why not? Swift syntax allows it, though it’s very very weird…*/
()

This does not compile.

@ahoppen
Copy link
Member

ahoppen commented Nov 6, 2024

Synced to Apple’s issue tracker as rdar://139346291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants