Commit 1570bed
authored
Align
Interpreter/inference think the 3-argument `:method` Expr returns
`nothing`. Codegen thinks it returns the new method. I think the latter
makes more sense, because it lets us write explicit syntax-level
dependency links between method definitions and constants (used e.g. for
external abstract interpreters), which is something that Revise may need
in the future. Adjust the interpreter/inference to properly return the
method.:method Expr return value between interpreter and codegen (#58076)1 parent 8681bb8 commit 1570bed
File tree
5 files changed
+34
-17
lines changed- Compiler/src
- src
- test
5 files changed
+34
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3409 | 3409 | | |
3410 | 3410 | | |
3411 | 3411 | | |
3412 | | - | |
| 3412 | + | |
3413 | 3413 | | |
3414 | 3414 | | |
3415 | 3415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | | - | |
| 629 | + | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | | - | |
443 | | - | |
444 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
4127 | 4129 | | |
4128 | 4130 | | |
4129 | 4131 | | |
| 4132 | + | |
4130 | 4133 | | |
4131 | 4134 | | |
4132 | 4135 | | |
| |||
4150 | 4153 | | |
4151 | 4154 | | |
4152 | 4155 | | |
4153 | | - | |
| 4156 | + | |
4154 | 4157 | | |
4155 | 4158 | | |
4156 | 4159 | | |
| |||
4162 | 4165 | | |
4163 | 4166 | | |
4164 | 4167 | | |
4165 | | - | |
4166 | | - | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
4167 | 4171 | | |
4168 | 4172 | | |
4169 | 4173 | | |
4170 | 4174 | | |
4171 | 4175 | | |
4172 | 4176 | | |
4173 | | - | |
4174 | | - | |
4175 | | - | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
4176 | 4181 | | |
4177 | 4182 | | |
4178 | 4183 | | |
| |||
4999 | 5004 | | |
5000 | 5005 | | |
5001 | 5006 | | |
5002 | | - | |
5003 | | - | |
| 5007 | + | |
| 5008 | + | |
| 5009 | + | |
| 5010 | + | |
5004 | 5011 | | |
5005 | 5012 | | |
5006 | 5013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8308 | 8308 | | |
8309 | 8309 | | |
8310 | 8310 | | |
| 8311 | + | |
8311 | 8312 | | |
8312 | 8313 | | |
8313 | 8314 | | |
8314 | | - | |
8315 | | - | |
| 8315 | + | |
| 8316 | + | |
8316 | 8317 | | |
8317 | 8318 | | |
8318 | 8319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4315 | 4315 | | |
4316 | 4316 | | |
4317 | 4317 | | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
0 commit comments