Skip to content

Commit e58cbcd

Browse files
RexJaeschkeBillWagner
authored andcommitted
remove constraint
1 parent 9a4faea commit e58cbcd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

standard/structs.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ The `readonly` modifier indicates that the *struct_declaration* declares a type
5757
A readonly struct has the following constraints:
5858

5959
- Each of its instance fields shall also be declared `readonly`.
60-
- None of its instance properties shall have a *set_accessor_declaration* ([§15.7.3](classes.md#1573-accessors)).
6160
- It shall not declare any field-like events ([§15.8.2](classes.md#1582-field-like-events)).
6261

6362
When an instance of a readonly struct is passed to a method, its `this` is treated like an input argument/parameter, which disallows write access to any instance fields (except by constructors).

0 commit comments

Comments
 (0)