Skip to content

Suppress with/end, class/end, interface/end, struct/end from displays when not needed #12093

@dsyme

Description

@dsyme

When a record or union type has members there is no need to show the when/end in signature output.

e.g. for

type U =
  | A
  | B
  member x.Name = "U"

We get:

type U =
  | A
  | B
  with
    member Name : string
  end

We want the simpler:

type U =
  | A
  | B
  member Name: string

There are also similar cases with class/end, struct/end, interface/end

Will be fixed by #12072

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature ImprovementImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.Theme-Simple-F#A cross-community initiative called "Simple F#", keeping people in the sweet spot of the language.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions