Skip to content

Commit

Permalink
fix grammar and add constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke authored Nov 17, 2024
1 parent 5d74d23 commit 9b57f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion standard/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,7 @@ default_argument
parameter_modifier
: parameter_mode_modifier
| 'this'
| 'this' parameter_mode_modifier?
;
parameter_mode_modifier
Expand Down Expand Up @@ -3056,6 +3056,7 @@ When the first parameter of a method includes the `this` modifier, that method i
- It may only be an input parameter if it has a value type
- It may only be a reference parameter if it has a value type or has a generic type constrained to struct
- It shall not be an output parameter.
- It shall not be a pointer type.
> *Example*: The following is an example of a static class that declares two extension methods:
Expand Down

0 comments on commit 9b57f62

Please sign in to comment.