Commit 7f3967c
Include the span of the argument when InferImplicitParametrics fails on a function argument.
See #3979
The mistake in that example is the wrong order of the intended names in the `let (data, tok) = recv(...)`, which actually leads to the first arg to send being the wrong type. This change adds the span for the `tok` argument of the actual `send` call to the error (that is the point where type inference actually fails).
PiperOrigin-RevId: 8869776321 parent ce5dd34 commit 7f3967c
3 files changed
Lines changed: 37 additions & 2 deletions
File tree
- xls/dslx/type_system_v2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
2089 | 2090 | | |
2090 | 2091 | | |
2091 | 2092 | | |
2092 | | - | |
2093 | | - | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
2094 | 2098 | | |
2095 | 2099 | | |
2096 | 2100 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
1624 | 1654 | | |
1625 | 1655 | | |
1626 | 1656 | | |
| |||
0 commit comments