| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/fail9790.d(13): Error: undefined identifier `_Unused_` |
| 5 |
fail_compilation/fail9790.d(20): Error: template instance `fail9790.foo!()` error instantiating |
| 6 |
fail_compilation/fail9790.d(18): Error: undefined identifier `_Unused_` |
| 7 |
fail_compilation/fail9790.d(21): Error: template instance `fail9790.bar!()` error instantiating |
| 8 |
--- |
| 9 |
*/ |
| 10 |
|
| 11 |
template foo() |
| 12 |
{ |
| 13 |
enum bool _foo = _Unused_._unused_; |
| 14 |
enum bool foo = _foo; |
| 15 |
} |
| 16 |
template bar() |
| 17 |
{ |
| 18 |
enum bool bar = _Unused_._unused_; |
| 19 |
} |
| 20 |
alias Foo = foo!(); |
| 21 |
alias Bar = bar!(); |