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

Typed throws in do blocks formatted incorrectly #768

Closed
bnbarham opened this issue Jul 15, 2024 · 1 comment · Fixed by #769
Closed

Typed throws in do blocks formatted incorrectly #768

bnbarham opened this issue Jul 15, 2024 · 1 comment · Fixed by #769

Comments

@bnbarham
Copy link
Contributor

struct bar: Error {
}

func foo() {
  do throws(bar) {
    throw bar()
  } catch {
  }
}

do throws(bar) becomes dothrows(bar)

@ahoppen
Copy link
Contributor

ahoppen commented Jul 15, 2024

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

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

Successfully merging a pull request may close this issue.

2 participants