-
Notifications
You must be signed in to change notification settings - Fork 872
Record constructors (FS-1073) #19974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
T-Gro
merged 26 commits into
dotnet:main
from
charlesroddie:feature/record-positional-ctor
Aug 7, 2026
Merged
Changes from 3 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
874e489
Allow constructing F# records via their all-fields constructor (FS-1073)
charlesroddie d3e1804
Rename MethInfo.RecdAllFieldsCtor to RecdCtor
charlesroddie 402baa2
Add release notes for record constructors (FS-1073)
charlesroddie 8c3997e
Test that struct/CLIMutable records expose no parameterless constructor
charlesroddie f56706b
Clarify wording: struct = default initialization, CLIMutable = parame…
charlesroddie 83db34d
Fix GoToDefinition for record constructor calls + IDE smoke tests
charlesroddie 249c623
Test record constructor on a RequireQualifiedAccess record
charlesroddie 06a1bf6
Add CompilerCompat cross-compiler tests for record constructors (FS-1…
charlesroddie 0797866
Test record constructor signature-file interplay
charlesroddie 8093757
CompilerCompat: generalize define to USES_PREVIEW_COMPILER, drop comm…
charlesroddie 23e39ee
Test quoted representation of record constructor matches { } syntax
charlesroddie 1a9a043
Merge remote-tracking branch 'upstream/main' into feature/record-posi…
charlesroddie a5ab09f
Fix NicePrint RecdCtor arm after merge: pass extTypeDisplay
charlesroddie 5b23ed5
Report FS3350 for record constructor use on an unsupported langversion
charlesroddie 512974f
Merge branch 'main' into feature/record-positional-ctor
charlesroddie d6e061c
Merge remote-tracking branch 'upstream/main' into feature/record-posi…
charlesroddie 0b301e3
Merge remote-tracking branch 'upstream/main' into feature/record-posi…
charlesroddie e6eba27
Merge remote-tracking branch 'upstream/main' into feature/record-posi…
charlesroddie bbac2ff
Gate record constructor surfacing and exclude it from signature output
charlesroddie c320c76
Merge remote-tracking branch 'upstream/main' into feature/record-posi…
charlesroddie 5978867
Code-review cleanups: List.singleton, filter formatting, Console.Writ…
charlesroddie b48d956
Code-review cleanups: match ValueNone explicitly, tighten comments
charlesroddie 16b7108
Use a wildcard instead of rebinding the matched location in a test
charlesroddie 96d3593
Merge branch 'main' into feature/record-positional-ctor
T-Gro 5aecbd3
Merge branch 'main' into feature/record-positional-ctor
charlesroddie 6bdbfe4
Strip trailing whitespace flagged by Fantomas in LanguageFeatures.fs
charlesroddie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.