Skip to content

Add regression test: #13697, typeof in attribute should report FS0039#19474

Merged
T-Gro merged 2 commits intomainfrom
regression-test/issue13697
Mar 26, 2026
Merged

Add regression test: #13697, typeof in attribute should report FS0039#19474
T-Gro merged 2 commits intomainfrom
regression-test/issue13697

Conversation

@T-Gro
Copy link
Copy Markdown
Member

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

Adds a regression test for #13697

Verifies that when using typeof<OutOfScopeType> in an attribute, both FS0039 (type not defined) and FS0267 (invalid constant expression) are reported as diagnostics. Previously, only FS0267 was shown, obscuring the more useful FS0039 error.

Fixes #13697

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 10:38
@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 10:38
@T-Gro T-Gro enabled auto-merge (squash) March 24, 2026 10:38
@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

1 similar comment
@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

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.

Later errors obscure earlier errors

2 participants