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