Skip to content

Add regression test: #7177, never-matched warning FS0026 with active patterns#19528

Merged
T-Gro merged 1 commit intomainfrom
regression-test/issue7177-999c44388d9a0b81
Apr 1, 2026
Merged

Add regression test: #7177, never-matched warning FS0026 with active patterns#19528
T-Gro merged 1 commit intomainfrom
regression-test/issue7177-999c44388d9a0b81

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Fixes #7177

Adds a regression test verifying that FS0026 ("This rule will never be matched") is correctly emitted when an active pattern precedes unreachable wildcard match rules. This was previously not reported due to how warnOnUnused was disabled for "problematic" clauses — the fix is now in main.

Test added: ErrorMessages.DiagnosticRegressionTestsIssue 7177 - never matched warning FS0026 is emitted when active pattern precedes wildcard rules

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@9135cdfde26838a01779aa966628308404ec1f02

Fixes #7177

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot requested a review from a team as a code owner March 31, 2026 13:29
@github-actions github-actions bot added 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 labels Mar 31, 2026
@github-actions github-actions bot requested review from T-Gro and abonie March 31, 2026 13:29
@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Apr 1, 2026
@T-Gro T-Gro merged commit 9b016f5 into main Apr 1, 2026
46 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Apr 1, 2026
@T-Gro T-Gro deleted the regression-test/issue7177-999c44388d9a0b81 branch April 1, 2026 09:51
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

Development

Successfully merging this pull request may close these issues.

"This rule is never matched" warning is not shown if an active pattern is used in match expression

1 participant