Skip to content

Deprecate shifting int by long #10508

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

Closed
adriaanm opened this issue Sep 12, 2017 · 8 comments
Closed

Deprecate shifting int by long #10508

adriaanm opened this issue Sep 12, 2017 · 8 comments

Comments

@adriaanm
Copy link
Contributor

See scala/scala3#2968, #9516

@adriaanm adriaanm added this to the 2.13.0-M3 milestone Sep 12, 2017
@adriaanm adriaanm modified the milestones: 2.13.0-M3, 2.13.0-M4 Jan 30, 2018
@eed3si9n
Copy link
Member

eed3si9n commented Feb 6, 2018

Is this a good first issue?

@SethTisue
Copy link
Member

I think so. deprecations and removals are usually among the easiest tasks.

@SethTisue SethTisue modified the milestones: 2.13.0-M4, 2.13.0-RC1 Feb 6, 2018
@thestuckster
Copy link

I'd like to take look into this if anyone can point me in the right direction

@SethTisue
Copy link
Member

SethTisue commented Mar 22, 2018

@thestuckster you could start by writing the tests that you'd like to succeed, and verify that they fail

as for where in the compiler code to even find where "shifting int by long" is, I would have suggested looking at scala/scala#5117, but looks like it only affects code in the back end, but we'd want to report the error much earlier. another thought would be to try to think of a similar, already existing warning and then see how it's implemented.

that's one increment of advice — further increments of advice are available if you let us know how you're doing

@sjrd
Copy link
Member

sjrd commented Mar 22, 2018

Those things are methods, declared in Int.scala. You should be able to mark them as @deprecated, as virtually any library method. Although this file is actually generated from a script in GenerateAnyVals.scala, which is probably the source you want to actually modify.

@SethTisue
Copy link
Member

@thestuckster I just noticed that a PR on this, by @sh0hei, exists at scala/scala#6370, but marked as WIP

@thestuckster
Copy link

@SethTisue thanks for the heads up

@lrytz
Copy link
Member

lrytz commented May 31, 2018

fixed in scala/scala#6680

@lrytz lrytz closed this as completed May 31, 2018
@lrytz lrytz modified the milestones: 2.13.0-RC1, 2.13.0-M5 May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants