Thread overview
[Issue 19327] case where a call to a static method is not allowed when located in a non static method
May 02, 2021
Basile-z
May 02, 2021
Basile-z
Dec 17, 2022
Iain Buclaw
May 02, 2021
https://issues.dlang.org/show_bug.cgi?id=19327

--- Comment #1 from Basile-z <b2.temp@gmx.com> ---
much simplified:

---
struct T
{
    static int target() {return 0;}
}

struct S
{
    T t;
    T aliasGet(){return t;}
    alias aliasGet this;
}

struct Use
{
    // S.aliasGet().target():
    // ----------------------
    // and T static members are tried
    static void ok()
    {
        auto v = S.target();
    }

    // S.aliasGet(this).target():
    // ----------------------
    // T static members are not tried because error happens before
    void bug()
    {
        auto v = S.target();
    }
}
---

--
May 02, 2021
https://issues.dlang.org/show_bug.cgi?id=19327

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=21886

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19327

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=19327

--- Comment #2 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17883

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--