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

24 lines
242 B
D

module issue21905;
struct Conv
{
StaticIterable b;
alias b this;
}
struct StaticIterable
{
static Conv b;
alias b this;
}
void each(ref StaticIterable r)
{
return ;
}
void main()
{
StaticIterable s;
each(s);
}