Skip to content

Bugfix :: Fix type definition metadata: duplicate methods, event flags#19341

Merged
T-Gro merged 17 commits intomainfrom
codegen/fix-typedefs-and-exceptions
Mar 27, 2026
Merged

Bugfix :: Fix type definition metadata: duplicate methods, event flags#19341
T-Gro merged 17 commits intomainfrom
codegen/fix-typedefs-and-exceptions

Conversation

@T-Gro
Copy link
Copy Markdown
Member

@T-Gro T-Gro commented Feb 20, 2026

Fixes type definitions emitting duplicate or incorrect metadata entries.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

✅ No release notes required

@T-Gro T-Gro force-pushed the codegen/fix-typedefs-and-exceptions branch 4 times, most recently from 63e792d to 3b64857 Compare February 20, 2026 17:23
Fixes #14321
Fixes #16565
Fixes #5834

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro force-pushed the codegen/fix-typedefs-and-exceptions branch from 3b64857 to 56491f1 Compare February 20, 2026 19:16
T-Gro and others added 2 commits February 26, 2026 15:52
For DefaultAugmentation(false) (NoHelpers), EraseUnions generates a
get_<CaseName> method but no corresponding <CaseName> property for
nullary cases. The method discard correctly removes the user's
get_<CaseName> method, but the property discard only checked
tdef2.Properties — which is empty for NoHelpers — leaving an orphaned
property whose getter method ref points to the discarded method.

Fix: also check tdef2.Methods for a corresponding get_ method when
deciding whether to discard a user property.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add tolerance for async cancellation token cleanup on slower CI
platforms. The Cancellable.HasCancellationToken assertion can fail
when the AsyncLocal cleanup from previous async operations has not
yet propagated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro
Copy link
Copy Markdown
Member Author

T-Gro commented Mar 2, 2026

/azp run fsharp-ci

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@T-Gro T-Gro marked this pull request as ready for review March 6, 2026 11:46
@T-Gro T-Gro requested a review from a team as a code owner March 6, 2026 11:46
@T-Gro T-Gro changed the title WIP :: Bugfix :: Fix type definition metadata: duplicate methods, event flags Bugfix :: Fix type definition metadata: duplicate methods, event flags Mar 6, 2026
T-Gro and others added 6 commits March 6, 2026 21:08
AzDo agent node.exe crashed: 'Assertion failed: new_time >= loop->time, file src/win/core.c, line 327' (exit 57005/0xDEAD).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Release notes: keep both PR entries and main entries
- ModuleReaderCancellationTests: use main's 200ms sleep (more robust)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…and-exceptions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Mar 23, 2026
T-Gro and others added 3 commits March 24, 2026 08:21
- Remove tracked .copilot-pid file
- Remove unused getActualIL helper and FSharp.Test.Utilities import
- Add IL verification tests for all three fixes:
  - Issue #5834: Verify specialname flag on abstract event accessors
  - Issue #14321: Verify DU case and IWSAM coexist without duplicates
  - Issue #16565: Verify DefaultAugmentation(false) produces correct methods

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro enabled auto-merge (squash) March 27, 2026 15:51
@T-Gro T-Gro merged commit 0b80769 into main Mar 27, 2026
48 checks passed
Copilot AI pushed a commit that referenced this pull request Mar 31, 2026
#19341)

Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Copilot AI pushed a commit that referenced this pull request Mar 31, 2026
#19341)

Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Copilot AI pushed a commit that referenced this pull request Mar 31, 2026
#19341)

Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

2 participants