[Issue 19749] Inout causes wrong type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 18 16:16:51 UTC 2019


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

--- Comment #4 from anonymous4 <dfj1esp02 at sneakemail.com> ---
inout is a wildcard for const qualifiers, so instead of mutable, const and
immutable you see inout. Inference provides you the qualifiers unchanged. To
restrict types you can use static assert or template constraints.

--


More information about the Digitalmars-d-bugs mailing list