Skip to content

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Feb 4, 2025

Backports scala#21414 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

While recalculating denotation in NamedType we might call
NamedType.disambiguate which uses a denotation to decide about
the correct overloaded method. Using current denotation here might cause
stale symbol errors, so instead we use the lastKnownDenotation,
which should be enough for the use case here, as targetName should not
change between phases/runs.

Later in the denotation recalculation a similar thing happens with
SourceLanguage.apply, where we also now avoid using currentDenotation,
as whether the symbol comes from java or Scala 2 should
also not change between phases/runs.

[Cherry-picked 6e58d25]
@tgodzik tgodzik closed this Feb 6, 2025
@tgodzik tgodzik deleted the backport-lts-3.3-21414 branch February 6, 2025 12:14
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