Skip to content

Commit 4042ebb

Browse files
RexJaeschkeBillWagner
authored andcommitted
Update classes.md
1 parent 8adf490 commit 4042ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3395,7 +3395,7 @@ For a ref-valued property the *ref_get_accessor_declaration* consists optional a
33953395
The use of *accessor_modifier*s is governed by the following restrictions:
33963396

33973397
- An *accessor_modifier* shall not be used in an interface or in an explicit interface member implementation.
3398-
- It is a compile-time error for the *accessor_modifier* `readonly` to be used in a *property_declaration* or *indexer_declaration* that is not contained directly by a *struct_declaration* (§cands-diffs-properties, §cands-diffs-indexers).
3398+
- It is a compile-time error for the *accessor_modifier* `readonly` to be used in a *property_declaration* or *indexer_declaration* that is not contained directly by a *struct_declaration* (§cands-diffs-properties, §cands-diffs-indexers).
33993399
- For a property or indexer that has no `override` modifier, an *accessor_modifier* is permitted only if the property or indexer has both a get and set accessor, and then is permitted only on one of those accessors.
34003400
- For a property or indexer that includes an `override` modifier, an accessor shall match the *accessor_modifier*, if any, of the accessor being overridden.
34013401
- The *accessor_modifier* shall declare an accessibility that is strictly more restrictive than the declared accessibility of the property or indexer itself. To be precise:

0 commit comments

Comments
 (0)