Skip to content

BasicFormat indents closing } of closure passed as a function parameter #2082

Open
@ahoppen

Description

@ahoppen

The following new test case fails.

func testClosureParameter() {
  let source = """
    myFunc({
        return true
    })
    """
  assertFormatted(source: source, expected: source)
}

The actual formatted source is

myFunc({
    return true
    })

rdar://114044607

Metadata

Metadata

Assignees

No one assigned

    Labels

    BasicFormatIncorrect formatting by BasicFormat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions