Skip to content

Backport "Fix goto-def on exported forwarders" to LTS #20872

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

Merged
merged 8 commits into from
Jul 1, 2024
Merged

Conversation

WojciechMazur
Copy link
Contributor

Backports #19494 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

dwijnand added 8 commits June 28, 2024 19:11
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.

[Cherry-picked 6792fc7]
Tested by giving exportTerm0 and exportTerm1 difference filenames,
resulting in different locations and breakage.

[Cherry-picked 0ee03ef]
Base automatically changed from lts-19558 to lts-3.3 July 1, 2024 08:30
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-19605.

Reference

@WojciechMazur WojciechMazur merged commit 27bae65 into lts-3.3 Jul 1, 2024
21 checks passed
@WojciechMazur WojciechMazur deleted the lts-19494 branch July 1, 2024 08:30
@WojciechMazur WojciechMazur restored the lts-19494 branch July 1, 2024 08:36
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.

2 participants