https://issues.dlang.org/show_bug.cgi?id=18000

--- Comment #1 from Walter Bright <bugzi...@digitalmars.com> ---
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. https://issues.dlang.org/show_bug.cgi?id=17977
addresses that.

--

Reply via email to