Skip to content

Generic type constraint for records (or more general an immutable type) #3899

Answered by Joe4evr
MCGPPeters asked this question in General
Discussion options

You must be logged in to vote

Duplicate of #3859 / #39 (comment).

In short, there is intentionally no way to distinguish between a record and a regular class, and there is no desire to change that.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MCGPPeters
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MCGPPeters
Comment options

Comment options

You must be logged in to vote
2 replies
@HaloFour
Comment options

@SGStino
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants