Skip to content

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.
@odersky odersky requested a review from Linyxus April 10, 2024 16:45
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
@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

3 participants