Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.4] File Local types #30537

Closed
Tracked by #30071
BillWagner opened this issue Aug 9, 2022 · 1 comment · Fixed by #31283
Closed
Tracked by #30071

[17.4] File Local types #30537

BillWagner opened this issue Aug 9, 2022 · 1 comment · Fixed by #31283
Assignees
Labels
🏁 Release: .NET 7 Work items for the .NET 7 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3 resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution]

Comments

@BillWagner
Copy link
Member

C# 11 will add "file local types".

Permit a file modifier on top-level type declarations. The type only exists in the file where it is declared.

This will require changes in the language reference to add the new access modifier. Look at the fundamentals section to consider if the file access modifier should be added there.

@PRMerger8 PRMerger8 added the Pri3 label Aug 9, 2022
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Aug 9, 2022
@BillWagner BillWagner added Pri1 High priority, do before Pri2 and Pri3 doc-idea Indicates issues that are suggestions for new topics [org][type][category] 🏁 Release: .NET 7 Work items for the .NET 7 release and removed ⌚ Not Triaged Not triaged Pri3 labels Aug 10, 2022
@BillWagner BillWagner self-assigned this Aug 10, 2022
@BillWagner
Copy link
Member Author

@Youssef1313 Is there an F1 tag for the file keyword?

@ghost ghost added the in-pr This issue will be closed (fixed) by an active pull request. label Sep 19, 2022
@dotnet-bot dotnet-bot added the resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution] label Sep 19, 2022
@ghost ghost removed the in-pr This issue will be closed (fixed) by an active pull request. label Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏁 Release: .NET 7 Work items for the .NET 7 release doc-idea Indicates issues that are suggestions for new topics [org][type][category] Pri1 High priority, do before Pri2 and Pri3 resolved-by-customer Indicates issues where the customer no longer needs any help. [org][resolution]
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants