dmd/compiler/test/fail_compilation/diag8044.d
2022-07-09 18:53:07 +02:00

19 lines
335 B
D

/*
TEST_OUTPUT:
---
fail_compilation/diag8044.d(18): Error: template instance `diag8044.test!(Enum.Bar)` does not match template declaration `test(Enum en)()`
with `en = Bar`
must satisfy the following constraint:
` 0`
---
*/
enum Enum { Foo, Bar }
void test(Enum en)()
if(0)
{
}
void main()
{
test!(Enum.Bar)();
}