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
We should either report rude edit whenever a record type is edited in any way or implement full support for EnC.
This needs to include
symbol matching record symbols
adding new non-predefined members
adding/removing predefined members: EqualityContract, Equals(R), GetHashCode(), ToString(), PrintMembers() and copy-constructor
User defined one can be added and removed, which should result in updating the compiler generated one and vice versa. EnC already implements similar logic for parameter-less constructors. Inherited members also need to be considered.
Spec:
In addition to the members declared in the record body, a record type has additional synthesized members. Members are synthesized unless a member with a "matching" signature is declared in the record body or an accessible concrete non-virtual member with a "matching" signature is inherited. Two members are considered matching if they have the same signature or would be considered "hiding" in an inheritance scenario.
Primary constructor
Synthesized Deconstruct vs user-defined
Using parameters and expression variables of the primary constructor in a closure
This issue is referenced in code.
We should either report rude edit whenever a record type is edited in any way or implement full support for EnC.
This needs to include
symbol matching record symbols
adding new non-predefined members
adding/removing predefined members:
EqualityContract
,Equals(R)
,GetHashCode()
,ToString()
,PrintMembers()
and copy-constructorUser defined one can be added and removed, which should result in updating the compiler generated one and vice versa. EnC already implements similar logic for parameter-less constructors. Inherited members also need to be considered.
Spec:
Primary constructor
Deconstruct
vs user-definedThe text was updated successfully, but these errors were encountered: