[Issue 18263] selective import with same name masks out this reference in mixin template

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 19 13:07:37 UTC 2018


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
There is no need for the mixin template. Reduced test case:

struct Filter
{
    void bar() { } 

    static void foo()
    {
        import std.meta : Filter;
        alias bar = this.bar;
    }   
}

--


More information about the Digitalmars-d-bugs mailing list