Skip to content

Add ability to set a break point on a constructor declared by a union declaration #83601

@AlekseyTs

Description

@AlekseyTs

Given a union declaration union U (int, bool);, for int and bool we create a constructor. For each of them a sequence point pointing to the corresponding type syntax is added at the end of the constructor's body (this is very similar to what we do for record constructors).

The idea is that a user should be able to set a break point for the constructors by using the corresponding type syntax. This doesn't work at the moment. While stepping, debugger stops at the location, but there is no way to set a break point at it

From @tmat:

Seems similar to records. Definitely non-trivial. Needs updates in multiple places in IDE (breakpoint placement and EnC).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions