Commit 19ec231
Add comment explaining why Pass 1 does not need No-certainty check
Address review feedback: Pass 1 uses exact matching which cannot produce
the asymmetry that causes the bug in Pass 2. The supertype match in
Pass 2 is inherently asymmetric - a broader condition type (the
"undefined" branch) is more likely to be a supertype of a narrowed type
than a narrower condition type (the "defined" branch). Exact matching
has no such asymmetry.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3ff4932 commit 19ec231
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3237 | 3237 | | |
3238 | 3238 | | |
3239 | 3239 | | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
3240 | 3248 | | |
3241 | 3249 | | |
3242 | 3250 | | |
| |||
0 commit comments