aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/issue21905.d
blob: 76a04d8d6d3f210385dd2afef7fe876025252c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}