Skip to content

Conversation

jskeet
Copy link
Contributor

@jskeet jskeet commented Jul 11, 2023

Fixes #835.

I don't believe any grammar changes are required - the operator grammar uses fixed_parameter which already permits modifiers, so it's down to the operator text to reject the others (which it does).

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

This LGTM.

Copy link
Contributor

@Nigel-Ecma Nigel-Ecma left a comment

Choose a reason for hiding this comment

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

This is a sufficient change, so I'll approve. However maybe a Note giving the purpose of using in – to avoid copying large values – might be a worthwhile addition?

@jskeet
Copy link
Contributor Author

jskeet commented Jul 12, 2023

I'll merge as-is, but create an issue for a note to be added post C# 7. At this point I'm trying to stick to the bare minimum for correctness in order to get C# 7 out :)

@jskeet jskeet merged commit 7585c82 into dotnet:draft-v7 Jul 12, 2023
@jskeet jskeet deleted the operator-in branch July 12, 2023 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

C# 7.3 §15.10.1 operator with in parameter modifier
3 participants