Skip to content

Test: properly quote symbols and expression in evaluated output#61149

Closed
christiankadiu wants to merge 1 commit intoJuliaLang:masterfrom
christiankadiu:fix-issue-57287
Closed

Test: properly quote symbols and expression in evaluated output#61149
christiankadiu wants to merge 1 commit intoJuliaLang:masterfrom
christiankadiu:fix-issue-57287

Conversation

@christiankadiu
Copy link

Fixes #57287.

end

_quote_evaluated_arg(x::Union{Symbol, Expr, QuoteNode}) = Expr(:quote, x)
_quote_evaluated_arg(x) = x
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like Meta.quot should maybe behave like this, but that's outside the scope of this PR.

Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of #61054

@christiankadiu
Copy link
Author

Thanks @vtjnash, I completely missed #61054. I'll close this one.

@Keno Thank you for the review! Regarding your comment on Meta.quot: would it be useful if I tried to implement that behavior in a separate PR? I am currently looking for issues to contribute, and I'd like to work on it if you think it's a viable task!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure to quote symbols in pretty printing in @test failures

4 participants