mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
17 lines
375 B
D
17 lines
375 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice13225.d(12): Error: mixin `ice13225.S.M!(function (S __param_0) pure nothrow @nogc @safe => 0)` does not match template declaration `M(T)`
|
|
fail_compilation/ice13225.d(16): Error: undefined identifier `undefined`
|
|
---
|
|
*/
|
|
mixin template M(T) {}
|
|
|
|
struct S
|
|
{
|
|
mixin M!((typeof(this)) => 0);
|
|
}
|
|
struct T
|
|
{
|
|
mixin M!(() => undefined);
|
|
}
|