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