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

24 lines
348 B
D

// REQUIRED_ARGS: -cov
// PERMUTE_ARGS: -fPIC
alias AliasSeq(Args...) = Args;
struct Duration
{
this(long hnsecs)
{
_hnsecs = hnsecs;
}
long _hnsecs;
}
void main()
{
foreach(U; AliasSeq!(Duration, const Duration))
{
const Duration t = 42;
U u = t;
assert(t._hnsecs == u._hnsecs);
}
}