-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix goto-def on exported forwarders #19494
Conversation
Given: class Foo(name: String, age: Int) case class Person(name: String) Is the Foo constructor symbol synthetic? Being the primary constructor, sourceSymbol considers it should be substituted for the Foo class symbol. Similarly, the Person apply method symbol is replaced by the class symbol for Person (via the Person module class). Doing so leads the presentation compiler to show details about the class, rather than the constructor or the apply method intially targeted.
82c54a9
to
c998f47
Compare
083c776
to
4e532e9
Compare
434f066
to
050d11d
Compare
@odersky let me know if you can spot a better way to do this, or any tweaks in how I do it. |
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.
This is awesome! Thanks! Probably Martin is still needed to review, but from my side it looks good!
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.
Otherwise LGTM
Tested by giving exportTerm0 and exportTerm1 difference filenames, resulting in different locations and breakage.
Backports #19494 to the LTS branch. PR submitted by the release tooling. [skip ci]
No description provided.