Commit 4d5b4e6
committed
support generic and polymorphic types in coercion expressions
- Allow coercion expressions to use generic and polymorphic types as the right-hand side
- Update grammar to permit generic_type and polymorphic_type in relevant contexts
- Add test cases for coercion with generic types
Close #2501 parent 6254b2a commit 4d5b4e6
5 files changed
Lines changed: 211647 additions & 143701 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
1053 | 1055 | | |
1054 | 1056 | | |
1055 | 1057 | | |
1056 | | - | |
| 1058 | + | |
1057 | 1059 | | |
1058 | 1060 | | |
1059 | 1061 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments