- Notifications
You must be signed in to change notification settings - Fork832
Open
Labels
Milestone
Description
Repro. case in F# 4.4.0.0 -
[<CompilationRepresentation (CompilationRepresentationFlags.UseNullAsTrueValue)>]type T = A | B of int | C of int | D of int;;A;;In F# interactive, here you'll see that A is a proper value, which is not desired.
[<CompilationRepresentation (CompilationRepresentationFlags.UseNullAsTrueValue)>]type T = A | B of int | C of int;;A;;In F# interactive, here you'll see that A is a null, which is desired.
Would be a nice optimization to have this work for 4 cases as here -https://github.com/bryanedds/Prime/blob/master/Prime/Prime/Prime/Vmap.fs#L25-L30
NOTE: Issue moved from here -fsharp/fsharp#510
Cheers!
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress