On Tuesday, 17 April 2018 at 05:33:53 UTC, Radu wrote:

This is very odd, as the following compiles:
---
struct S
{
    this(this)
    {
    }

    ~this()
    {
    }
}

struct C
{
    S s1;
}
---

If the scope failure would cause this then I assume it would not work at all in any case.

Yeah! I think that is also a bug. So (at least right now in my investigation) I think we first need to fix it so that it emits the error even with a single statement, and then fix it so it no longer generates the `scope(failure)` in -betterC.

Mike

Reply via email to