Skip to content

Fix inferred result types of non private members in stdlib-bootstapped #17975

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

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Jun 14, 2023

Cloned original Scala 2 sources (in commits Clone ...) and added explicit result types to methods where Scala 2 and Scala 3 infer different types (in commits Fix ...).

Once accepted, I will open a PR to scala/scala to add these missing signatures directly to the library.

I used stdlib-boostrapped/run clone scala/XYZ.scala to clone the sources.

@nicolasstucki nicolasstucki force-pushed the stdlib-add-explicit-result-to-non-private-members branch from c287511 to 8d7bbfa Compare June 14, 2023 14:39
@nicolasstucki nicolasstucki self-assigned this Jun 14, 2023
@nicolasstucki nicolasstucki force-pushed the stdlib-add-explicit-result-to-non-private-members branch from e83d7d0 to 53d326a Compare June 14, 2023 14:57
@nicolasstucki nicolasstucki marked this pull request as ready for review June 14, 2023 16:09
@dwijnand
Copy link
Member

@nicolasstucki should we remove the skips now and force CI to rerun?

@nicolasstucki nicolasstucki force-pushed the stdlib-add-explicit-result-to-non-private-members branch from fb9d723 to 26d1d8f Compare June 15, 2023 08:10
@nicolasstucki nicolasstucki force-pushed the stdlib-add-explicit-result-to-non-private-members branch from 26d1d8f to 66b05b8 Compare June 15, 2023 08:20
@nicolasstucki nicolasstucki requested a review from dwijnand June 15, 2023 08:21
@nicolasstucki nicolasstucki merged commit 916d4e7 into scala:main Jun 15, 2023
@nicolasstucki nicolasstucki deleted the stdlib-add-explicit-result-to-non-private-members branch June 15, 2023 11:37
nicolasstucki added a commit to nicolasstucki/scala that referenced this pull request Jun 16, 2023
Add explicit result type to methods where Scala 2 and Scala 3
disagree with the inferred type. The aim is to have the same type in
the Scala 2 pickles and the Scala 3 TASTy.

These where identified in scala/scala3#17975
nicolasstucki added a commit to nicolasstucki/scala that referenced this pull request Jun 16, 2023
Add explicit result type to methods where Scala 2 and Scala 3
disagree with the inferred type. The aim is to have the same type in
the Scala 2 pickles and the Scala 3 TASTy.

These where identified in scala/scala3#17975
nicolasstucki added a commit to nicolasstucki/scala that referenced this pull request Jun 21, 2023
Add explicit result type to methods where Scala 2 and Scala 3
disagree with the inferred type. The aim is to have the same type in
the Scala 2 pickles and the Scala 3 TASTy.

These where identified in scala/scala3#17975
nicolasstucki added a commit to nicolasstucki/scala that referenced this pull request Jun 26, 2023
Add explicit result type to methods where Scala 2 and Scala 3 disagree
with the inferred type. The aim is to have the same type in the Scala 2
pickles and the Scala 3 TASTy.

Follow up of scala#10435

These where identified in and tested in
  * scala/scala3#18032
  * scala/scala3#18029
  * scala/scala3#17975 (BitSet)
hamzaremmal pushed a commit to hamzaremmal/scala3 that referenced this pull request May 2, 2025
Add explicit result type to methods where Scala 2 and Scala 3
disagree with the inferred type. The aim is to have the same type in
the Scala 2 pickles and the Scala 3 TASTy.

These where identified in scala#17975
hamzaremmal pushed a commit to hamzaremmal/scala3 that referenced this pull request May 2, 2025
Add explicit result type to methods where Scala 2 and Scala 3 disagree
with the inferred type. The aim is to have the same type in the Scala 2
pickles and the Scala 3 TASTy.

Follow up of scala/scala#10435

These where identified in and tested in
  * scala#18032
  * scala#18029
  * scala#17975 (BitSet)
hamzaremmal pushed a commit that referenced this pull request May 7, 2025
Add explicit result type to methods where Scala 2 and Scala 3
disagree with the inferred type. The aim is to have the same type in
the Scala 2 pickles and the Scala 3 TASTy.

These where identified in #17975
hamzaremmal pushed a commit that referenced this pull request May 7, 2025
Add explicit result type to methods where Scala 2 and Scala 3 disagree
with the inferred type. The aim is to have the same type in the Scala 2
pickles and the Scala 3 TASTy.

Follow up of scala/scala#10435

These where identified in and tested in
  * #18032
  * #18029
  * #17975 (BitSet)
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