Revision 136f018e7473e48ebb90ed5bc8dc6ad3dd109d6f authored by Keno Fischer on 01 March 2024, 06:32:36 UTC, committed by GitHub on 01 March 2024, 06:32:36 UTC
The following is currently an error:
```
julia> module MyMacroModule
           macro mymacro end
       end
Main.MyMacroModule

julia> macro MyMacroModule.mymacro()
           1
       end
ERROR: syntax: invalid macro definition around REPL[2]:1
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1
```

Discussing with Jeff, we didn't think there was any good reason not to
allow this, just a missing case in lowering. It's probably not
particularly useful (unlike the corresponding case for functions that is
used all the time), but it came up in writing a test case for #53515.
1 parent 95f54c4
History
File Mode Size
asan
bpftrace
mac
pgo-lto
tsan
windows
README.md -rw-r--r-- 2.9 KB
add_license_to_files.jl -rw-r--r-- 7.0 KB
check-whitespace.jl -rwxr-xr-x 2.0 KB
commit-name.sh -rwxr-xr-x 1.2 KB
debug_bootstrap.gdb -rw-r--r-- 76 bytes
delete-all-rpaths.sh -rwxr-xr-x 925 bytes
download_cmake.sh -rwxr-xr-x 2.1 KB
excise_stdlib.sh -rwxr-xr-x 967 bytes
fixup-libgfortran.sh -rwxr-xr-x 6.0 KB
fixup-libstdc++.sh -rwxr-xr-x 1.1 KB
fixup-rpath.sh -rwxr-xr-x 1.0 KB
generate_precompile.jl -rw-r--r-- 14.1 KB
httpbin-prod-swagger-apigateway.yaml -rw-r--r-- 3.0 KB
install.sh -rwxr-xr-x 695 bytes
julia-config.jl -rwxr-xr-x 3.6 KB
julia.appdata.xml -rw-r--r-- 1.4 KB
julia.desktop -rw-r--r-- 367 bytes
julia.png -rw-r--r-- 1.6 KB
julia.svg -rw-r--r-- 1.1 KB
new-stdlib.sh -rwxr-xr-x 1.8 KB
normalize_triplet.py -rwxr-xr-x 4.4 KB
prepare_release.sh -rwxr-xr-x 4.8 KB
print_sorted_stdlibs.jl -rw-r--r-- 3.1 KB
refresh_checksums.mk -rw-r--r-- 6.7 KB
relative_path.py -rwxr-xr-x 537 bytes
stringreplace.c -rw-r--r-- 942 bytes
updateSPDX.jl -rw-r--r-- 1.1 KB
valgrind-julia.supp -rw-r--r-- 156 bytes
write_base_cache.jl -rw-r--r-- 376 bytes

README.md

back to top