Skip to content

Add regression tests: #14308 + #14310, Signature generation improvements#19490

Merged
T-Gro merged 1 commit intomainfrom
regression-test/issue14308-14310
Mar 24, 2026
Merged

Add regression tests: #14308 + #14310, Signature generation improvements#19490
T-Gro merged 1 commit intomainfrom
regression-test/issue14308-14310

Conversation

@T-Gro
Copy link
Copy Markdown
Member

@T-Gro T-Gro commented Mar 24, 2026

Fixes #14308
Fixes #14310

Adds two regression tests for signature generation:

  1. Signature generation must include private field info in case of Structs #14310 (struct private field): Verifies that a struct type with a private field roundtrips correctly when the signature includes the private field (as generated by fsc --sig). Previously, the generated .fsi omitted private struct fields, causing compilation failure when used together.

  2. Update signature generation to include Sealed/Class/Interface attribute for OO-style type constructs #14308 (Sealed/Class/Interface attributes): Verifies that [<Sealed>], [<AbstractClass>], [<Interface>], and [<Class>] attributes roundtrip correctly in signature files. Previously, the generated .fsi omitted these attributes, causing compilation mismatches.

…ovements

Test 1 (#14310): Verify struct with private field roundtrips correctly
when signature includes the private field (as generated by --sig).

Test 2 (#14308): Verify Sealed, AbstractClass, Interface and Class
attributes roundtrip correctly in signature generation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro requested a review from a team as a code owner March 24, 2026 17:47
@T-Gro T-Gro added NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes AI-Issue-Regression-PR PR adding regression test for a closed issue labels Mar 24, 2026
@T-Gro T-Gro requested a review from abonie March 24, 2026 17:47
@T-Gro T-Gro enabled auto-merge (squash) March 24, 2026 17:47
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@T-Gro T-Gro merged commit 1cd0ca0 into main Mar 24, 2026
56 checks passed
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Mar 24, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI-Issue-Regression-PR PR adding regression test for a closed issue NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

2 participants