Commit bd5dc64
committed
fix: use Type::Any for binary/unary op results instead of hardcoded I32
The parser was hardcoding binary and unary operation results as I32,
which broke operator overloading for opaque types. Now using Type::Any
to let the type checker infer the correct result type from trait impls.1 parent 90d0660 commit bd5dc64
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1656 | 1656 | | |
1657 | 1657 | | |
1658 | 1658 | | |
1659 | | - | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1660 | 1663 | | |
1661 | 1664 | | |
1662 | 1665 | | |
| |||
1675 | 1678 | | |
1676 | 1679 | | |
1677 | 1680 | | |
1678 | | - | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1679 | 1685 | | |
1680 | 1686 | | |
1681 | 1687 | | |
| |||
0 commit comments