Skip to content
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

Rewrite reaches tests to fix tasty-cc nightly failures #20156

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 10, 2024

The reaches.scala pos test failed the nightly with tasty cc since one line violated the new condition for reaches capabilities. The problem was not discoveed in normal testing since it used the List class, which is capture checked only in the nightly. We now make the relevant bits of List explicit in the test itself, so that it is always capture checked. The failing line got moved to neg.

[test_scala2_library_tasty]

The reaches.scala pos test failed the nightly with tasty cc since one line violated
the new condition for reaches capabilities. The problem was not discoveed in normal
testing since it used the `List` class, which is capture checked only in the nightly.
We now make the relevant bits of `List` explicit in the test itself, so that it is
always capture checked. The failing line got moved to neg.
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!

Though, this feels like a strict limitation in expressiveness. Then we cannot map any list with impure elements?

@odersky odersky merged commit ff52a47 into scala:main Apr 11, 2024
19 checks passed
@odersky odersky deleted the fix-tasty-cc-nightly branch April 11, 2024 14:58
@Kordyjan Kordyjan added this to the 3.5.0 milestone May 10, 2024
noti0na1 added a commit that referenced this pull request Jun 6, 2024
Fix error introduced by a test of #20524.

Due to limitation in expressiveness of current system, we are not able
to map over lists of impure elements. See discussion in #20156.
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