blob: a8c767ae7a8c3c42aa1da490ca7642877e6db00c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
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)();
}
|