Skip to content

Conversation

@64J0
Copy link
Contributor

@64J0 64J0 commented Oct 12, 2025

Summary

This PR adds the missing documentation for the FS0410 compiler message.

It's defined at the FSComp.txt document.

Related to #48442.


Internal previews

📄 File 🔗 Preview link
docs/fsharp/language-reference/compiler-messages/fs0410.md FS0410: A type is less accessible than the value, member or type it is used in
docs/fsharp/language-reference/compiler-messages/toc.yml docs/fsharp/language-reference/compiler-messages/toc

@64J0 64J0 requested a review from a team as a code owner October 12, 2025 18:04
Copilot AI review requested due to automatic review settings October 12, 2025 18:04
@64J0 64J0 requested review from a team and BillWagner as code owners October 12, 2025 18:04
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 12, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fsharp/svc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 12, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds documentation for the F# compiler error message FS0410, which occurs when a type with lower accessibility is used in a more accessible context. The documentation includes a code example demonstrating the error and explains the underlying access control issue.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
samples/snippets/fsharp/compiler-messages/fs0410.fsx Adds example code demonstrating FS0410 error with private type used in public function
docs/fsharp/language-reference/compiler-messages/toc.yml Adds TOC entry for FS0410 documentation
docs/fsharp/language-reference/compiler-messages/fs0410.md Creates complete documentation for FS0410 compiler error message

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @64J0

This looks great. I have a few suggestions for you to consider.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @64J0

This LGTM, and I'll :shipit: now.

You should see the changes on the live site in the next day or so on our regular publishing cycle.

@BillWagner BillWagner merged commit 10dd246 into dotnet:main Oct 13, 2025
8 checks passed
@64J0 64J0 deleted the add-info-for-FS0410 branch October 13, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fsharp/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants