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

Future migration warning for with type operator #18818

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Nov 1, 2023

  • In future-migration we emit the deprecation warning and enable the patch with -rewrite.
  • In future we emit we make this syntax an error
//> using options  -source future
def foo: Int with String = ??? // error
//> using options  -rewrite -source future-migration
- def foo: Int with String = ???
+ def foo: Int & String = ???

* In future-migration we emit the deprecation warning and enable the patch with -rewrite.
* In future we emit we make this syntax an error
@nicolasstucki nicolasstucki self-assigned this Nov 1, 2023
@nicolasstucki nicolasstucki marked this pull request as ready for review November 2, 2023 07:50
@nicolasstucki nicolasstucki changed the title Make with type operator a migration warning Future migration warning for with type operator Nov 2, 2023
@nicolasstucki nicolasstucki removed their assignment Nov 2, 2023
@nicolasstucki nicolasstucki requested a review from odersky November 2, 2023 08:00
@nicolasstucki nicolasstucki merged commit 80eb6e1 into scala:main Nov 2, 2023
18 checks passed
@nicolasstucki nicolasstucki deleted the with-type-operator-future branch November 2, 2023 12:32
@Kordyjan Kordyjan added this to the 3.4.0 milestone Dec 20, 2023
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