Skip to content

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

@stephencelis

Description

@stephencelis
$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions