The following:
+++++foo.d++++++
shared struct Shared
{
static shared(Shared) make()
{
return shared(Shared)();
}
~this()
{
}
}
void main()
{
auto s = Shared.make();
}
+++++++++++
Compiles with 2.072 and 2.074, fails with upward versions including 2.077 with this error:
Error: shared method foo.Shared.~this is not callable using a non-shared object