Skip to content

Avoid cycles when loading standard library under cc #19603

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 2 commits into from
Feb 4, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 3, 2024

Two measures:

  • Introduce a new annotation @retainsCap that's equivalent to @retains(cap) but that does not need to load Seq to analyze a vararg argument.
  • Don't use & when computing self types of classes with explicitly declared capturing self types.

Partial fix of #19586

Two measures

 - Introduce a new annotation @retainsCap that's equivalent to
   @retains(cap) but that does not need to load Seq to analyze a
   vararg argument.
 - Don't use `&` when computing self types of classes with
   explicitly declared capturing self types.

Fixes scala#19568
Some self types are now simplified.
Copy link
Contributor

@Linyxus Linyxus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@odersky odersky merged commit 2655768 into scala:main Feb 4, 2024
@odersky odersky deleted the fix-19586 branch February 4, 2024 20:22
nicolasstucki added a commit to dotty-staging/dotty that referenced this pull request Feb 5, 2024
odersky added a commit that referenced this pull request Feb 5, 2024
Tests the fixes in #19603. Follow-up of #19586.

Tests `scala3-bootstrapped/testCompilation i3`, this is a subset that
currently works and use to fail.
@Kordyjan Kordyjan added this to the 3.4.1 milestone Feb 14, 2024
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.

3 participants