Skip to content

[Version 10.0] Feature support for global using directives#1565

Draft
RexJaeschke wants to merge 5 commits intodraft-10from
v10-global-using-directives
Draft

[Version 10.0] Feature support for global using directives#1565
RexJaeschke wants to merge 5 commits intodraft-10from
v10-global-using-directives

Conversation

@RexJaeschke
Copy link
Copy Markdown
Contributor

@RexJaeschke RexJaeschke commented Feb 6, 2026

This is Rex's adaptation of the corresponding MS proposal.

@RexJaeschke RexJaeschke added this to the C# 10 milestone Feb 6, 2026
@RexJaeschke RexJaeschke added type: feature This issue describes a new feature Review: pending Proposal is available for review labels Feb 6, 2026
@RexJaeschke RexJaeschke marked this pull request as draft February 6, 2026 21:18
RexJaeschke and others added 5 commits March 27, 2026 12:00
- Add a `## §global-using-directives Global using directives` heading before `### §global-using-directives-general General`.
- Add after the `using_directive` paragraph: "The *global_using_directive*s of a compilation unit affect the *global_attributes* and *namespace_member_declaration*s of all compilation units in the program."
Update to: "The *extern_alias_directive*s of a compilation unit affect the *global_using_directive*s, *using_directive*s, *global_attributes* and *namespace_member_declaration*s of that compilation unit, but have no effect on other compilation units."
- Update to: "Using directives (§14.5) and global using directives (§global-using-directives) are provided to facilitate the use of namespaces."
@BillWagner BillWagner force-pushed the v10-global-using-directives branch from ef9f014 to 29a956f Compare March 27, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review: pending Proposal is available for review type: feature This issue describes a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants