[Issue 19566] Warn when the same argument is passed two times, once as ref or out, the other not
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 16 01:16:53 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19566
apham <apz28 at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apz28 at hotmail.com
--- Comment #2 from apham <apz28 at hotmail.com> ---
This should be an error as below
```
void stuff(I,O)(const I input, out O output){}
void other()
{
ubyte[] data = void;
stuff(data, data);
}
```
--
More information about the Digitalmars-d-bugs
mailing list