[Issue 19126] Compiler removes inout on templated parameter and then complains it's not there

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 2 11:03:20 UTC 2018


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

--- Comment #5 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Steven Schveighoffer from comment #4)
> Aye, the compiler is stripping inout from the type because it knows that
> inout(immutable(T)) can be rewritten as immutable(T).
Then wrap1 would suffer from it too, but it doesn't.

--


More information about the Digitalmars-d-bugs mailing list