Skip to content

"async throws" gets smooshed together in some cases #538

Closed
@saagarjha

Description

@saagarjha

Before formatting:

var tasks = [(() async throws -> Int)]()

After formatting:

var tasks = [(() asyncthrows -> Int)]()

Notably, this code isn't even valid anymore. I'm using swift-format 508.0.1.

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