Skip to content

C# 11: Support for file scoped types. #12234

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

Merged
merged 6 commits into from
Mar 1, 2023

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Feb 17, 2023

In this PR we make support for file scoped types. These types are only visible in the file where they are declared.

file class C1 { }

@michaelnebel michaelnebel force-pushed the csharp/filescopedtypes branch from 33d6919 to 35793b4 Compare February 20, 2023 09:31
@michaelnebel
Copy link
Contributor Author

DCA looks good.

@michaelnebel michaelnebel marked this pull request as ready for review February 20, 2023 11:53
@michaelnebel michaelnebel requested a review from a team as a code owner February 20, 2023 11:53
mbg
mbg previously approved these changes Feb 27, 2023
Copy link
Member

@mbg mbg left a comment

Choose a reason for hiding this comment

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

This looks reasonable to me, especially after reviewing this commit-by-commit. Initially, trying to understand the refactoring from 8b967f9 combined with the other changes was a bit tricky.

Just one small comment about something I couldn't understand from the context of the other changes in this PR.

Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelnebel michaelnebel merged commit 0dc6ada into github:main Mar 1, 2023
@michaelnebel michaelnebel deleted the csharp/filescopedtypes branch March 1, 2023 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants