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

Deprecated enum values using deprecated expressions shouldn't be warned about #19565

Open
dlangBugzillaToGithub opened this issue May 11, 2019 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Jan Jurzitza reported this on 2019-05-11T21:05:58Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19865

Description

enum Foo {
    a,
    deprecated b,
}

enum Bar {
	deprecated c = Foo.b
}


is generating the following deprecation notice:

a.d(7): Deprecation: enum member `a.Foo.b` is deprecated

Using deprecated values inside a deprecated field should not generate that notice.
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

1 participant