blob: 7abdb9e26a378790419a52a002e016f6398b4e2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
TEST_OUTPUT:
---
fail_compilation/fail6334.d(13): Error: static assert: `0` is false
fail_compilation/fail6334.d(11): instantiated from here: `T2!()`
---
*/
mixin template T1()
{
mixin T2; //compiles if these lines
mixin T2!(a, bb, ccc, dddd); //are before T2 declaration
mixin template T2() { static assert(0); }
}
void main()
{
mixin T1;
}
|