Commit 8f6bb58
committed
[DeclChecker] Skip contextualization of initializers associated with property wrapped variables
Fixes a double-contextualization that results in an assert because
properties with property wrappers have the same initializer in two
places - original property (which becomes computed) and backing
storage property - that's where the initializer is copied.
Contextualization of the fully type-checked initializer should happen
as part of backing storage property processing by the declaration
checker.
Resolves: rdar://163562182
(cherry picked from commit 5e815b9)1 parent e0e0521 commit 8f6bb58
File tree
2 files changed
+43
-0
lines changed- lib/Sema
- validation-test/Sema/type_checker_crashers_fixed
2 files changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2692 | 2692 | | |
2693 | 2693 | | |
2694 | 2694 | | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
2695 | 2704 | | |
2696 | 2705 | | |
2697 | 2706 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments