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

Define Predef.assert overwrite directly in Scala 2 library TASTy #19231

Closed
wants to merge 3 commits into from

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Dec 11, 2023

[test_scala2_library_tasty]

@nicolasstucki nicolasstucki self-assigned this Dec 11, 2023
@nicolasstucki nicolasstucki changed the title Override scala predef Define Predef.assert overwrite directly in Scala 2 library TASTy Dec 11, 2023
@nicolasstucki nicolasstucki force-pushed the override-scala-predef branch 5 times, most recently from a4ac534 to ce75b49 Compare December 14, 2023 09:37
@nicolasstucki nicolasstucki force-pushed the override-scala-predef branch 8 times, most recently from f442519 to 7df2efa Compare December 20, 2023 08:47
nicolasstucki added a commit that referenced this pull request Dec 20, 2023
This command allow us to quickly see the diff between the original
library and the overwritten files in `scala2-library-bootstrapped/src`.

Instructions are printed with `scala2-library-bootstrapped/run` as with
other commands for `scala2-library-bootstrapped`.

Extracted from #18967.
Also useful for #19231.
@nicolasstucki nicolasstucki force-pushed the override-scala-predef branch 2 times, most recently from bf04c2d to 690e61b Compare January 4, 2024 08:34
@nicolasstucki nicolasstucki force-pushed the override-scala-predef branch 2 times, most recently from 2ba3903 to 45aee96 Compare February 9, 2024 13:53
Define `assert` in `scala.Predef` instead `scala.runtime.stdLibPatches.Predef`.
We assume that all patches to `scala.Predef` are inline methods, therefore
if we see an inline method in `scala.Predef` we do not patch it with the
method in `scala.runtime.stdLibPatches.Predef`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant