Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8621 from JinShil/fix_19193
Issue 19193 - deprecated attribute on enum members in templates is ignored
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
REQUIRED_ARGS: -de | ||
TEST_OUTPUT | ||
--- | ||
fail_compilation/test19193.d(13): Deprecation: enum member `test19193.T19193!int.A.b` is deprecated | ||
--- | ||
*/ | ||
|
||
// https://issues.dlang.org/show_bug.cgi?id=19193 | ||
|
||
void main () | ||
{ | ||
cast(void)T19193!int.A.b; | ||
} | ||
|
||
template T19193(T) | ||
{ | ||
enum A | ||
{ | ||
deprecated b | ||
} | ||
} |