It discards this(this) on the struct if it is in templated function.
But keeps other members.
Comment #1 by razvan.nitu1305 — 2017-10-31T08:48:01Z
Running dmd -H test.d on git HEAD where test.d is:
void foo()()
{
struct C
{
this(this) {}
}
}
results in a .di file which contains :
// D import file generated from 'test.d'
void foo()()
{
struct C
{
this(this);
}
}
This seems like the correct behavior. Closing as fixed.