Thread overview
[Issue 23118] UFCS not working for function level templates
May 17
Dennis
May 17
RazvanN
May 17
Dennis
May 17
https://issues.dlang.org/show_bug.cgi?id=23118

Dennis <dkorpel@live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel@live.nl
           Severity|major                       |enhancement

--- Comment #1 from Dennis <dkorpel@live.nl> ---
This is intentionally disallowed, though it is sometimes requested as an improvement.

https://dlang.org/spec/function.html#pseudo-member

> Functions declared in a local scope are not found when searching for a matching UFCS function.

--
May 17
https://issues.dlang.org/show_bug.cgi?id=23118

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
Cool, closing as invalid.

--
May 17
https://issues.dlang.org/show_bug.cgi?id=23118

--- Comment #3 from Dennis <dkorpel@live.nl> ---
Some code relies on the current behavior by the way:

http://dpldocs.info/this-week-in-d/Blog.Posted_2022_01_31.html#tip-of-the-week

--