Skip to content

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

@scabug

Description

@scabug

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions