-
Notifications
You must be signed in to change notification settings - Fork 352
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
bugfix: Document highlight on generic class init in scala 3 #5878
Conversation
6e7ebb5
to
c061153
Compare
case (id: Ident) :: (_: New) :: (sel: Select) :: _ | ||
if id.symbol == NoSymbol && sel.symbol.isConstructor => | ||
Some(symbolAlternatives(sel.symbol.owner), id.sourcePos) | ||
case (sel @ Select(New(_: Ident), _)) :: (_: TypeApply) :: _ |
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.
What if there is a longer Select
there, e.g. O.<<Ab@@c>>[Int](2)
?
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 noticing, it should work now.
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.
Looks good. 👍
mtags/src/main/scala-3/scala/meta/internal/pc/PcCollector.scala
Outdated
Show resolved
Hide resolved
ba7c64e
to
a31706e
Compare
closes #5877