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
When a record is augmented with an static member or a static let, extra constructor parameters are generated for each, but the constructor call does not provide these parameters, resulting in the constructor arguments arbitrarily being assigned to slots intended for static parameters.
Description
When a record is augmented with an
static member
or astatic let
, extra constructor parameters are generated for each, but the constructor call does not provide these parameters, resulting in the constructor arguments arbitrarily being assigned to slots intended for static parameters.Repro code
[Please provide the F# code to reproduce the problem or a link to the REPL.
Ideally, it should be possible to easily turn this code into a unit test.](https://fable.io/repl/#?code=PYBwpgdgBAYghgIwDZgHQGFgCcwChcAuAnuFABpQC8UA3lAJYAmAXAxAQL64Du9BAFrijCoAZwJwC9AMZQUBKAH04VKACYRUISPGSZUALZgDCMFigrqy-AHobUHAQCuWCKKgAGADRj6EaWBQAoEA5pBmkmCMUNLAbgRYTtIE2EFwANZg7gI4gSBwWHAG7rh2FhDRcUhEUHGB9O4gWMAAbkxRUNz8kBZiElKy8gyNOKIQYAS4QwRZBACMqjRMqnNcAFIAyqixbsAoqEjAIQAUM+JzqEwAlPjEpACaxwwsbARXVNrCugNyE0qW6k0wk+fT0siMJjMvWoahBENM5kUl2i1CYtnsjhcbigcx8cHcYAAHuBklEfKI-AEgt0YnFxIlkqkJJl3CoKRAQigoPlCkYZlgpn8zgQNNRHstqHMbpttnS9mhDidhWpkVcgA&html=Q&css=Q)
Expected and actual results
Static members on records should not break record constructor call sites.
Related information
4.22.0
The text was updated successfully, but these errors were encountered: