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

--- Comment #1 from Vladimir Panteleev <[email protected]> ---
(In reply to Vladimir Panteleev from comment #0)
> Now, we want to make getArr callable with a const S. Attempt #1, add a const
> overload:
> 
>     void getArr(scope void delegate(int[]) fn) { fn(arr); }
>     void getArr(scope void delegate(const(int)[]) fn) const { fn(arr); }
> 
> Oops, now calling getArr on a mutable object with a lambda causes "matches
> both" errors.

Oh, actually this is a regression.

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

--

Reply via email to