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

Missing deprecatedInheritance warnings #19002

Closed
nicolasstucki opened this issue Nov 20, 2023 · 0 comments · Fixed by #19082
Closed

Missing deprecatedInheritance warnings #19002

nicolasstucki opened this issue Nov 20, 2023 · 0 comments · Fixed by #19082

Comments

@nicolasstucki
Copy link
Contributor

Compiler version

3.0-3.3

Minimized code

Example from deprecatedInheritance documentation:

// Example from deprecatedInheritance documentation
@deprecatedInheritance("this class will be made final", "FooLib 12.0")
class Foo
val foo = new Foo     // no deprecation warning
class Bar extends Foo
// warning: inheritance from class Foo is deprecated (since FooLib 12.0): this class will be made final
// class Bar extends Foo
//                   ^

Output

No warnings

Expectation

Should warn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants