--- Comment #1 from Walter Bright <> ---
Attributes are inferred for the generated opAssign, the result looks like:

   @nogc ref return @trusted File opAssign(File p)

Not sure why scope is not inferred.

In any case, the example has problems as well:

    scope File f;
    f = File();

The lifetime of File() is less than that of f, so this example should fail to
compile for that reason.
addresses that.


Reply via email to