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

scalac warns about deprecated use of identifier "then" even if it is marked as deprecated #5715

Open
scabug opened this issue Apr 27, 2012 · 2 comments

Comments

@scabug
Copy link

@scabug scabug commented Apr 27, 2012

In the following source code

    @deprecated("Use Then instead of then", "0.10.0-M2")
    def then[B : BaseTypeMapper](res: Column[B]) = Then(res)

scalac complains that

C:\Users\szeiger\code\scala-query\src\main\scala\scala\slick\ql\Case.scala:28: then is now a reserved word; usage as an identifier is deprecated
    def then[B : BaseTypeMapper](res: Column[B]) = Then(res)
        ^

This is not usually the case when using deprecated API. If the caller is also deprecated, no warning should be emitted.

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Apr 27, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5715?orig=1
Reporter: @szeiger
Affected Versions: 2.10.0-M3

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented May 3, 2012

@paulp said:
This is actually tricky to deal with, because we need to warn on then but not then (I don't know if jira will savage my backticks) and that information is discarded before annotations are processed.

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue SethTisue removed quickfix labels Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.