[Issue 12511] static overloaded function is not accessible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 3 02:42:58 UTC 2018


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

Domain <do.main at foxmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #4 from Domain <do.main at foxmail.com> ---
Still has problem:

class A
{
    private static void foo(int i, int j)
    {

    }

    public static void foo(int i)
    {
        A.foo(i, 0);
    }
}

Error: function test.A.foo(int i) is not callable using argument types (int,
int)

But change A.foo(1, 0) to foo(i, 0) passed.

--


More information about the Digitalmars-d-bugs mailing list