Skip to content

Poor line breaking around @unchecked Sendable #1032

Open
@jrose-signal

Description

@jrose-signal
public class ProtocolAddress: ClonableHandleOwner<SignalMutPointerProtocolAddress>, @unchecked Sendable {
  // …
}

This admittedly-lengthy inheritance clause gets formatted as

public class ProtocolAddress: ClonableHandleOwner<SignalMutPointerProtocolAddress>, @unchecked
  Sendable
{
}

which is definitely not the best place for a line break. The general principle here is probably to keep attributes with the thing they're attached to when the attachee isn't at the start of a 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