Macro hygiene problems with function return type and where #21581
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:lowering
Syntax lowering (compiler front end, 2nd stage)
OK:
Problem:
Related problems manifest in other cases:
In general I think there are several places that need to be updated for
(function (:: ,ex ,rettype) ,body)
and(function (where ,ex ,ex2) ,body)
syntax.Some of the sites I identified are
macroexpand.scm
julia/src/macroexpand.scm
Line 52 in 2d803f3
julia/src/macroexpand.scm
Line 105 in 2d803f3
julia/src/macroexpand.scm
Line 141 in 2d803f3
julia/src/macroexpand.scm
Line 255 in 2d803f3
julia/src/macroexpand.scm
Line 305 in 2d803f3
julia/src/macroexpand.scm
Line 318 in 2d803f3
julia-syntax.scm
julia/src/julia-syntax.scm
Line 1319 in 2d803f3
I would make a PR, but I'm a little reluctant to because I don't know if simply adding cases for
where
and::
to each of the above sites is the best solution.The text was updated successfully, but these errors were encountered: