Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 19193 - deprecated attribute on enum members in templates i…
…s ignored
- Loading branch information
1 parent
758c5ac
commit edc9310
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 | ||
} | ||
} |