mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
19 lines
403 B
D
19 lines
403 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail6334.d(13): Error: static assert: `0` is false
|
|
fail_compilation/fail6334.d(11): instantiated from here: `mixin 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;
|
|
}
|