summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test23258.d
blob: 1e8e91b779531c32c8820809f5e5e85c4f7dfd97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// https://issues.dlang.org/show_bug.cgi?id=23258

struct SumType(Types...)
{
    this(Types[0])
    {
    }
    this(Types[1])
    {
    }
}

alias A2 = SumType!(C1[], C2[]);

class C1
{
}

class C2
{
}