-
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
Fix #1104 #1105
Fix #1104 #1105
Conversation
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.
Thank you for this contribution! Is there a relationship between this change and scalameta/scalameta#2043 ?
Given: 0 trait SymbolTest {
1 def shouldBe(right: Any)
2 def arg = 1
3 this shouldBe (arg)
4 } ↑ ↑
16 21 We use To workaround for scalameta/scalameta#1083, when get Position for name But in Code changes in this PR: Only re-try getting symbol from range |
No. The bug resolved in this PR have no relation to implicit conversion as in scalameta/scalameta#2043. Given: trait AnyShouldWrapper {
def shouldBe(right: Any)
}
trait SymbolTest {
implicit def convert(o: Any)(implicit foo: Int): AnyShouldWrapper
implicit val foo: Int = 1
def arg = 1
this shouldBe (arg)
} In the last statement
|
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.
LGTM 👍 Thank you for explaining!
Please let me know if you're blocked by this fixed and need a new release. I would prefer to wait a bit longer to cut a new release since it always takes a while to synchronize scalafix-core/sbt-scalafix |
Fix #1104