Skip to content

509 Regression: @available with multiline string literal produces code that doesn't compile #664

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

Closed
stephencelis opened this issue Nov 11, 2023 · 1 comment

Comments

@stephencelis
Copy link

stephencelis commented Nov 11, 2023

$ swift-format
@available(
  iOS,
  deprecated: 9999,
  message:    
    """
    Deprecated.

    See https://more.info
    """
)
func f() {}
@available(
  iOS,
  deprecated: 9999,
  message: """Deprecated. 🛑

  See https://more.info"""
)
func f() {}

🛑 Multi-line string literal content must begin on a new line

@allevato
Copy link
Member

allevato commented Nov 13, 2023

This was reported in #652 and fixed by #656, but we haven't cut a new release with that fix yet.

@allevato allevato closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2023
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