You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/structs.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,6 @@ The `readonly` modifier indicates that the *struct_declaration* declares a type
57
57
A readonly struct has the following constraints:
58
58
59
59
- 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)).
61
60
- It shall not declare any field-like events ([§15.8.2](classes.md#1582-field-like-events)).
62
61
63
62
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