mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
21 lines
204 B
D
21 lines
204 B
D
// 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
|
|
{
|
|
}
|