Repository navigation
Commit 45992fc
authored
Process overloads as a whole in two-phase type-checking (#22231)
Fixes #22229
This fixes a regression that can (often) cause false negatives in
settable properties.
The problem is that we currently may have some part of an overloaded
function to be scheduled for processing as part of interface, and other
parts to be processed as parts of implementation. This is especially
problematic for properties (which are internally stored as overloads). I
propose to always keep overloads as a whole. It may be marginally slower
in parallel mode, but much simpler to reason about.1 parent 2ec1257 commit 45992fc
2 files changed
Lines changed: 28 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
4727 | | - | |
| 4727 | + | |
4728 | 4728 | | |
4729 | 4729 | | |
4730 | 4730 | | |
| |||
4809 | 4809 | | |
4810 | 4810 | | |
4811 | 4811 | | |
4812 | | - | |
| 4812 | + | |
4813 | 4813 | | |
4814 | 4814 | | |
4815 | 4815 | | |
| |||
4821 | 4821 | | |
4822 | 4822 | | |
4823 | 4823 | | |
4824 | | - | |
| 4824 | + | |
4825 | 4825 | | |
4826 | 4826 | | |
4827 | 4827 | | |
| |||
8617 | 8617 | | |
8618 | 8618 | | |
8619 | 8619 | | |
| 8620 | + | |
| 8621 | + | |
| 8622 | + | |
| 8623 | + | |
| 8624 | + | |
| 8625 | + | |
| 8626 | + | |
| 8627 | + | |
| 8628 | + | |
| 8629 | + | |
| 8630 | + | |
| 8631 | + | |
8620 | 8632 | | |
8621 | 8633 | | |
8622 | 8634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9789 | 9789 | | |
9790 | 9790 | | |
9791 | 9791 | | |
| 9792 | + | |
| 9793 | + | |
| 9794 | + | |
| 9795 | + | |
| 9796 | + | |
| 9797 | + | |
| 9798 | + | |
| 9799 | + | |
| 9800 | + | |
| 9801 | + | |
| 9802 | + | |
| 9803 | + | |
| 9804 | + | |
0 commit comments