Commit 6420e27
Add regression test for value-in-container narrowing widening (#21512)
Adds a test case to check-narrowing.test to cover the regression where
`x in container` narrowing would widen x to the container's item type
even when that item type is not a proper subtype of x's declared type.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent dbea92a commit 6420e27
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4281 | 4281 | | |
4282 | 4282 | | |
4283 | 4283 | | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
0 commit comments