JuliaLang:master
← JuliaLang:yyc/macro-curmodule
opened 06:38PM - 12 Apr 16 UTC
There is a surprising number of base code that relies on the wrong behavior....
…
One broken test/code that need to be fixed on this commit is the [MacroGlobalFunction test](https://github.com/JuliaLang/julia/commit/a8284df44d61bdeb3f03779ee9cbcb6fdd04a8c4#diff-75b23cc61d190dd99feab17b8e297ee3L3463). The test doesn't work if the macro is used outside the module so I think the fix is correct. However, should the macro expander detect this case and avoid modifying the function name that is defined to be global already?
Closes #14893
c.c. @JeffBezanson about the test mentioned above and since the code was added a long time ago (https://github.com/JuliaLang/julia/commit/605bc65c59451b567bd64e750c1e659424759fe2) I can't really find a explanation why the check is necessary.