Skip to content

@deprecated on a class is ignored #2333

Closed
@smarter

Description

@smarter
@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
%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions