November 27, 2014 [Issue 12068] `enum` as `inout` function parameter isn't enough for `inout` return. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12068 --- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> --- Another testcase: --- enum E { a } auto f(inout(E) val) { return val; } --- main.d(3): Error: variable main.f.val inout variables can only be declared inside inout functions main.d(3): Error: inout on return means inout must be on a parameter as well for inout(E)(inout(E) val) --- -- |
July 02, 2017 [Issue 12068] `enum` as `inout` function parameter isn't enough for `inout` return. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12068 Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dlang-bugzilla@thecybershad | |ow.net See Also| |https://issues.dlang.org/sh | |ow_bug.cgi?id=15762 Resolution|--- |WORKSFORME --- Comment #2 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> --- Fixed by https://github.com/dlang/dmd/pull/5878. -- |
Copyright © 1999-2021 by the D Language Foundation