mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
parent
ed17b3e95d
commit
a6b3751b19
2 changed files with 12 additions and 0 deletions
|
@ -655,7 +655,11 @@ TupleDeclaration isAliasThisTuple(Expression e)
|
|||
return td;
|
||||
}
|
||||
if (Type att = t.aliasthisOf())
|
||||
{
|
||||
t = att;
|
||||
continue;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
8
compiler/test/compilable/test21153.d
Normal file
8
compiler/test/compilable/test21153.d
Normal file
|
@ -0,0 +1,8 @@
|
|||
// https://github.com/dlang/dmd/issues/21153
|
||||
alias AliasSeq(TList...) = TList;
|
||||
class DataClass;
|
||||
void reduce(DataClass[] r)
|
||||
{
|
||||
alias Args = AliasSeq!(DataClass);
|
||||
Args result = r[0];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue