[Issue 19749] Inout causes wrong type inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 22 10:21:37 UTC 2019


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

--- Comment #10 from Ali Ak <ali.akhtarzada at gmail.com> ---
(In reply to anonymous4 from comment #9)
> S!(char[])
> S!(const char[])
> S!string
> Can't be the same template, they are different types with distinct code
> generated for each of them. So they can't be handled by the same code.

Exactly. And inout is generating the wrong one!

Anyway, it seems I've filed this before ->
https://issues.dlang.org/show_bug.cgi?id=19125

--


More information about the Digitalmars-d-bugs mailing list