Skip to content

Support 'scoped' modifier for parameters and locals#61389

Merged
cston merged 33 commits intodotnet:features/ref-fieldsfrom
cston:scoped-keyword
Jun 3, 2022
Merged

Support 'scoped' modifier for parameters and locals#61389
cston merged 33 commits intodotnet:features/ref-fieldsfrom
cston:scoped-keyword

Conversation

@cston
Copy link
Copy Markdown
Contributor

@cston cston commented May 18, 2022

Proposal: low-level-struct-improvements.md
Test plan: #59194

Parse and bind scoped modifier for parameters and locals; report binding error for scoped when compiling with -langversion:10 or earlier; emit modifier to metadata with LifetimeAnnotationAttribute. The scoped modifier can be applied to ref or to ref struct values.

The PR does not include:

  • Changes to escape rules for scoped variables (see spec)
  • conversions involving scoped
  • scoped considered in overrides and interface implementation

Loading
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.

5 participants