dmd/compiler/test/compilable/test16621.d
2022-07-09 18:53:07 +02:00

23 lines
249 B
D

// https://issues.dlang.org/show_bug.cgi?id=16621
template xxx()
{
Vector2f xxx()
{
return this;
}
}
struct Vector2f
{
mixin xxx!();
alias xxx this;
}
void foo(ref Vector2f pos);
void test()
{
Vector2f v;
foo(v);
}