Skip to content

Commit 956667a

Browse files
RexJaeschkeBillWagner
authored andcommitted
mention partial and readonly
1 parent 6b8841f commit 956667a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

standard/structs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,8 @@ Although a readonly method may call a sibling, non-readonly method, or property
506506
507507
A readonly method may call a sibling property or indexer set accessor that is readonly. If a sibling member’s accessor is not explicitly or implicitly readonly, a compile-error occurs.
508508
509+
All *method_declaration*s of a partial method shall have a `readonly` modifier, or none of them shall have it.
510+
509511
### §cands-diffs-indexers Indexers
510512
511513
An *indexer_declaration* ([§14.9](classes.md#149-indexers)) for an instance indexer in a *struct_declaration* may contain the *indexer_modifier* `readonly`.

0 commit comments

Comments
 (0)