Skip to content

Missing macro hygiene in @show #58963

@jakobnissen

Description

@jakobnissen

Discovered by Jakob Peters, posting it here so it's not forgotten:

julia> macro test()
           quote
               value = 1
               @show 2
               value
           end
       end;

julia> @test
2 = 2
2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions