mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
17 lines
283 B
D
17 lines
283 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/template_enum_param.d(15): Error: static assert: `false` is false
|
|
fail_compilation/template_enum_param.d(17): instantiated from here: `X!(E.a)`
|
|
---
|
|
*/
|
|
|
|
enum E
|
|
{
|
|
a,b,c
|
|
}
|
|
template X(E e)
|
|
{
|
|
static assert(false);
|
|
}
|
|
alias Y = X!(E.a);
|