Skip to content

@deprecated on a class is ignored #2333

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
smarter opened this issue Apr 30, 2017 · 0 comments
Closed

@deprecated on a class is ignored #2333

smarter opened this issue Apr 30, 2017 · 0 comments

Comments

@smarter
Copy link
Member

smarter commented Apr 30, 2017

@deprecated("bla", "2.11.0") class Foo

object Test {
  new Foo
}
% scalac -deprecation try/depr.scala
try/depr.scala:4: warning: class Foo is deprecated (since 2.11.0): foo
  new Foo
      ^
one warning found
% dotc -deprecation try/depr.scala
%
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

2 participants