[Issue 18000] [scope] auto-generated opAssign not scope aware
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 12 02:41:31 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18000
--- Comment #1 from Walter Bright <bugzilla at 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.
--
More information about the Digitalmars-d-bugs
mailing list