mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
335 B
D
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)();
|
|
}
|