Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong printing for QuoteNodes in . expressions #37651

Open
simeonschaub opened this issue Sep 18, 2020 · 0 comments
Open

Wrong printing for QuoteNodes in . expressions #37651

simeonschaub opened this issue Sep 18, 2020 · 0 comments
Labels
domain:display and printing Aesthetics and correctness of printed representations of objects. kind:bug Indicates an unexpected problem or unintended behavior

Comments

@simeonschaub
Copy link
Member

The following doesn't print correctly on master:

julia> Expr(:., :a, QuoteNode(Expr(:$, :b)))
:(a.:($(Expr(:$, :b))))

julia> :(a.:($(Expr(:$, :b))))
:(a.:($(Expr(:$, :(Expr(:$, :b))))))

These lines should probably use show_unquoted_quote_expr instead:

parens = !(field isa Symbol) || (field::Symbol in quoted_syms)

@JeffBezanson JeffBezanson added kind:bug Indicates an unexpected problem or unintended behavior domain:display and printing Aesthetics and correctness of printed representations of objects. labels Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:display and printing Aesthetics and correctness of printed representations of objects. kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants