Skip to content

Conversation

BillWagner
Copy link
Member

The ref safe context for an in parameter is different when the in argument is passed by reference vs. when a copy is made.

Fixes #296

@BillWagner BillWagner requested a review from gafter June 21, 2023 20:28
Copy link
Contributor

@jskeet jskeet left a comment

Choose a reason for hiding this comment

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

Still getting context back, but this looks right to me.

@BillWagner BillWagner added the meeting: discuss This issue should be discussed at the next TC49-TG2 meeting label Jul 12, 2023
@BillWagner BillWagner added this to the C# 7.x milestone Jul 12, 2023
The ref safe context for an `in` parameter is different when the `in` argument is passed by reference vs. when a copy is made.

Fixes dotnet#296
@BillWagner BillWagner merged commit 12f7170 into dotnet:draft-v7 Jul 12, 2023
@BillWagner BillWagner deleted the in-ref-safety branch July 12, 2023 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting: discuss This issue should be discussed at the next TC49-TG2 meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ref-safe-to-escape rule for in parameter
3 participants