Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Feb 25, 2022

Fixes #28249

The compiler generated program class and Main method are declared in the global namespace, not a namespace matching the project name.

Fixes #25960

Add a clarifying statements that local functions cannot include access modifiers.

Fixes dotnet#28249

The compiler generated program class and `Main` method are declared in the global namespace, not a namespace matching the project name.
Point out that local functions can't include any access modifiers.

Fixes dotnet#25960
Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

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

Looks great, one suggestion to remove a comma that became superfluous when an item was removed from the series.

Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
@BillWagner BillWagner enabled auto-merge (squash) February 28, 2022 14:09
@BillWagner BillWagner merged commit d4e098b into dotnet:main Feb 28, 2022
@BillWagner BillWagner deleted the top-level-global-namespace branch February 28, 2022 14:45
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.

Top level statement is on global namespace How do I add a function in this template?

3 participants