@@ -237,8 +237,8 @@ struct S {
237
237
var x1: Int
238
238
var x2: Int
239
239
240
- @storageRestrictions (initializes: x1, x2)
241
240
var computed: Int {
241
+ @storageRestrictions (initializes: x1, x2)
242
242
init (newValue) { ... }
243
243
}
244
244
@@ -255,8 +255,8 @@ struct S {
255
255
var x: Int
256
256
var y: Int
257
257
258
- @storageRestrictions (initializes: x, y)
259
258
var point: (Int , Int ) {
259
+ @storageRestrictions (initializes: x, y)
260
260
init (newValue) {
261
261
(self .x , self .y ) = newValue
262
262
}
@@ -286,8 +286,8 @@ struct S {
286
286
var x2: Int
287
287
var x3: Int
288
288
289
- @storageRestrictions (initializes: x1, x2)
290
289
var computed: Int {
290
+ @storageRestrictions (initializes: x1, x2)
291
291
init (newValue) { ... }
292
292
}
293
293
@@ -306,10 +306,10 @@ struct S {
306
306
var x: Int
307
307
var y: Int
308
308
309
- @storageRestrictions (initializes: x, y)
310
309
var point: (Int , Int ) {
310
+ @storageRestrictions (initializes: x, y)
311
311
init (newValue) {
312
- (self .x , self .y ) = newValue
312
+ (self .x , self .y ) = newValue
313
313
}
314
314
get { (x, y) }
315
315
set { (x, y) = newValue }
@@ -330,8 +330,8 @@ If a struct does not declare its own initializers, it receives an implicit membe
330
330
struct S {
331
331
var _x: Int
332
332
333
- @storageRestrictions (initializes: _x)
334
333
var x: Int {
334
+ @storageRestrictions (initializes: _x)
335
335
init (newValue) {
336
336
_x = newValue
337
337
}
@@ -361,8 +361,8 @@ The parameters of the memberwise initializer follow source order. However, if an
361
361
struct S {
362
362
var _x: Int
363
363
364
- @storageRestrictions (initializes: _x, accesses: y)
365
364
var x: Int {
365
+ @storageRestrictions (initializes: _x, accesses: y)
366
366
init (newValue) {
367
367
_x = newValue
368
368
}
@@ -433,8 +433,8 @@ Init accessors can be provided for properties that lack a setter. Such propertie
433
433
struct S {
434
434
var _x: Int
435
435
436
- @storageRestrictions (initializes: _x)
437
436
var x: Int {
437
+ @storageRestrictions (initializes: _x)
438
438
init (initialValue) {
439
439
self ._x = x
440
440
}
0 commit comments