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

pretty printer: backquote importees when needed #2260

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

bjaglin
Copy link
Member

@bjaglin bjaglin commented Feb 28, 2021

Originally reported as scalacenter/scalafix#1337.
Fix regression introduced in #2239.

Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you for fixing this!

@olafurpg olafurpg requested a review from tgodzik March 1, 2021 09:56
@kpbochenek
Copy link
Collaborator

Is this testcase correct? assert(q"import a.`{ q }`".syntax == "import a.`{ q }`")
Shouldn't it be a.{`q`} ?

@bjaglin
Copy link
Member Author

bjaglin commented Mar 1, 2021

Is this testcase correct? assert(q"import a.`{ q }`".syntax == "import a.`{ q }`")
Shouldn't it be a.{`q`} ?

From my understanding, `{ q }` is a correct (although nasty!) identifier: liancheng/scalafix-organize-imports@c7bb8d2

Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this! LGTM!

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.

5 participants