-
Notifications
You must be signed in to change notification settings - Fork 186
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
ExplicitResultTypes
: backquote types when needed
#1578
Conversation
Thanks for the PR, that's already a step forward! I didn't have a look at it yet, but can you maybe elaborate what challenges you faced with other type symbols? You can open a draft PR with failing tests as a starting point, it's always valuable for others to pick up where you left off. |
scalafix-rules/src/main/scala/scalafix/internal/rule/CompilerTypePrinter.scala
Outdated
Show resolved
Hide resolved
Hello!
it would output:
It's tempting to fix the issue, by taking the If you have any question, don't hesitate! |
@mlachkar Thanks for the review. I moved impl to |
ExplicitResultTypes
output in case of backticks for case classes
ExplicitResultTypes
output in case of backticks for case classes
/traits
ExplicitResultTypes
output in case of backticks for case classes
/traits
ExplicitResultTypes
output in case of backticks for case classes
/ traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the iteration, it's shaping up! Don't forget to run ./bin/scalafmt
.
scalafix-rules/src/main/scala/scala/meta/internal/pc/Identifier.scala
Outdated
Show resolved
Hide resolved
scalafix-rules/src/main/scala/scala/meta/internal/pc/ScalafixGlobal.scala
Outdated
Show resolved
Hide resolved
...fix-tests/input/src/main/scala-2/test/explicitResultTypes/ExplicitResultTypesBackQuote.scala
Outdated
Show resolved
Hide resolved
Thank you for your review, @bjaglin! |
ExplicitResultTypes
output in case of backticks for case classes
/ traits
ExplicitResultTypes
: backquote types when needed
Thanks for the great work @danicheg ! I managed to backport the changes to Metals also https://github.com/scalameta/metals/pull/3829/files |
This fixes #1219. I was struggled with a working fix for all type-symbols but didn't succeed. I'd be glad to get help in moving this onward.