[Issue 7340] inout not resolved for default parameters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 28 07:11:41 PDT 2016


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

Maksim Zholudev <maximzms at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maximzms at gmail.com

--- Comment #1 from Maksim Zholudev <maximzms at gmail.com> ---
DMD 2.070.2
--------------------
inout(int) bar(inout(int) y = 0){return y;}
pragma(msg, typeof(bar()));
pragma(msg, typeof(bar(0)));
--------------------

Output:
--------------------
inout(int)
int
--------------------

`inout` qualifier somehow escapes the context of `bar` function.

--


More information about the Digitalmars-d-bugs mailing list