Skip to content

formatting problem with an object literal as an inlined result type of a function #6252

Closed

Description

// given / expected
function _uniteVertices<p extends string, a>(
    minority: Pinned<p, Vertex<a>>,
    majorityCounter: number,
    majority: Pinned<p, Vertex<a>>
): {
    majorityCounter: number;
    vertecis: Pinned<p, {
        oldVertexId: VertexId;
        vertex: Vertex<a>;
    }>;
} {
}
// actual
function _uniteVertices<p extends string, a>(
    minority: Pinned<p, Vertex<a>>,
    majorityCounter: number,
    majority: Pinned<p, Vertex<a>>
): {
        majorityCounter: number;
        vertecis: Pinned<p, {
            oldVertexId: VertexId;
            vertex: Vertex<a>;
        }>;
    } {
}

Activity

  1. added
    Bug
    Domain: Formatter
    on Dec 28, 2015
  2. added this to the milestone on Jan 7, 2016
  3. mhegazy commented on Jan 7, 2016

    @mhegazy
    Contributor
  4. added
    VS Code Tracked
    on Apr 11, 2017
  5. added
    Fixed
    on Nov 9, 2018
  6. DanielRosenwasser commented on Nov 9, 2018

    @DanielRosenwasser
    Member
  7. locked as resolved and limited conversation to collaborators on Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: FormatterFixedVS Code Tracked

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions