[Issue 15764] Name lookup within (eponymous?) template doesn't check outside the template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 13 14:56:39 UTC 2023


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The problem here is that when `ta(s)` is resolved, the first scope that is
searched for `ta` is the current scope and the `ta` symbol is already defined
as an enum. This sort of situation is precisely why the dot operator was added.
The alternative would be to special case the implementation for such
situations.

As a conclusion, this is a WONTFIX. The compilers does the correct thing.

--


More information about the Digitalmars-d-bugs mailing list