You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
Unions with 4 or more cases silently fail to utilize UseNullAsTrueValue. #510
Activity
enricosada commentedon Nov 2, 2015
hi @bryanedds , this repo is for cross platoform packaing ( see http://fsharp.github.io/2014/06/18/fsharp-contributions.html for a guide) can you create or move this issue to Microsoft/visualfsharp repository?
About this issue, there is a constant UnionReprDecisions.TaggingThresholdFixedConstant = 4, below this value the UseNullAsTrueValue is applied.
This is used here
I dont know the history about of this decision, @dsyme ? we need to add a warning (error?) or remove this check?
There is already an error if the attribute cannot be applied, but the UnionReprDecisions.OptimizeAlternativeToNull is not aligned with CanHaveUseNullAsTrueValueAttribute, the only difference is this check where the constant TaggingThresholdFixedConstant is evaluated
bryanedds commentedon Nov 4, 2015
Issue moved to - dotnet/fsharp#711
Fix fsharp#492 - use ConvILTypeRefUnadjusted to properly route local …