Commit 0f0e558
committed
Python: a checked tuple unbox without guards chooses by if expression
A lowerer that leaves the pending check to its caller (the field
dispatchers) kept the unbox inside a block value, where the if statement
choosing between the tuple and its zero lost the assignment, so a tuple
field read through a dynamic receiver was always zero.
git-bug: 382b32e109cb0ad60931124bda7305c85457aec87934d9ad59796807b537b29f1 parent 45cc728 commit 0f0e558
3 files changed
Lines changed: 60 additions & 6 deletions
File tree
- crates/zyntax_python
- conformance/tuple
- src
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 45 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 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2595 | 2595 | | |
2596 | 2596 | | |
2597 | 2597 | | |
2598 | | - | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
2599 | 2602 | | |
2600 | 2603 | | |
2601 | 2604 | | |
| |||
2605 | 2608 | | |
2606 | 2609 | | |
2607 | 2610 | | |
2608 | | - | |
2609 | | - | |
2610 | | - | |
2611 | | - | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
2612 | 2617 | | |
2613 | 2618 | | |
2614 | | - | |
2615 | 2619 | | |
2616 | 2620 | | |
2617 | 2621 | | |
| |||
0 commit comments