Commit 909a316
Add non-regression test for TypeSpecifier trivially-true condition skip
Tests that processBooleanSureConditionalTypes correctly skips conditions
where TypeCombinator::remove() returns the same type as the input. Without
the TypeSpecifier fix, BooleanAnd creates spurious conditional expressions
(e.g. $type=non-falsy-string) because remove(non-falsy-string, 'filter')
has no effect.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 2d5f0f6 commit 909a316
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments