[Issue 23955] Can't access non-eponymous members in IFTI template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 2 16:00:02 UTC 2023


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

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(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

--


More information about the Digitalmars-d-bugs mailing list