File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 865
865
866
866
struct TestNonMutatingSetNoDefault {
867
867
var _count : Int
868
+ var _other : String = " "
868
869
869
870
var count : Int {
870
871
@storageRestrictions ( initializes: _count)
917
918
// CHECK-NEXT: test-nonmutating-set-2: TestNonMutatingSetDefault(_count: 0)
918
919
// CHECK-NEXT: init accessor is called: -1
919
920
// CHECK-NEXT: nonmutating set called: 0
920
- // CHECK-NEXT: test-nonmutating-set-3: TestNonMutatingSetNoDefault(_count: -1)
921
+ // CHECK-NEXT: test-nonmutating-set-3: TestNonMutatingSetNoDefault(_count: -1, _other: "" )
921
922
// CHECK-NEXT: init accessor is called: 42
922
923
// CHECK-NEXT: nonmutating set called: 0
923
924
// CHECK-NEXT: test-nonmutating-set-4: TestNonMutatingSetCustom(_count: 42)
Original file line number Diff line number Diff line change @@ -423,8 +423,6 @@ func test_handling_of_nonmutating_set() {
423
423
self . count = 0
424
424
}
425
425
}
426
- <<<<<<< Updated upstream
427
- =======
428
426
429
427
struct TestWithStored {
430
428
private var _count : Int
@@ -468,5 +466,4 @@ func test_handling_of_nonmutating_set() {
468
466
self . count = value
469
467
}
470
468
}
471
- >>>>>>> Stashed changes
472
469
}
You can’t perform that action at this time.
0 commit comments