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).
Given a
uniondeclarationunion U (int, bool);, forintandboolwe 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: