Commit 45448cd
committed
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 codegen1 parent 1117df6 commit 45448cd
File tree
3 files changed
+13
-4
lines changed- Compiler/src
- src
- test
3 files changed
+13
-4
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 | |
|---|---|---|---|
| |||
4315 | 4315 | | |
4316 | 4316 | | |
4317 | 4317 | | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
| 4325 | + | |
0 commit comments