Thread overview
[Issue 12511] static overloaded function is not accessible
Jan 25, 2018
RazvanN
Feb 22, 2018
RazvanN
Apr 03, 2018
Domain
Jun 06, 2018
FeepingCreature
Jun 06, 2018
FeepingCreature
Dec 17, 2022
Iain Buclaw
January 25, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

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

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

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
PR : https://github.com/dlang/dmd/pull/7773

--
January 28, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

--- Comment #2 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/0278c5138a2b9d6329b20d58e2164f13556bcda7 Fix Issue 12511 - static overloaded function is not accessible

https://github.com/dlang/dmd/commit/1928320aef174f3a4eaecc375b8ed650049084d9 Added link to issue 12511

https://github.com/dlang/dmd/commit/1b0890a76b5bc6d3c994be31ed6b8c410916b4ca Merge pull request #7773 from RazvanN7/Issue_12511

Fix Issue 12511 - static overloaded function is not accessible merged-on-behalf-of: Mike Franklin <JinShil@users.noreply.github.com>

--
January 28, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

github-bugzilla@puremagic.com changed:

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

--
February 22, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andre@s-e-a-p.de

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 13697 has been marked as a duplicate of this issue. ***

--
April 03, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

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

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

--- Comment #4 from Domain <do.main@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.

--
June 06, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

FeepingCreature <default_357-line@yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-line@yahoo.de

--- Comment #5 from FeepingCreature <default_357-line@yahoo.de> ---
This PR has created a new problem.

test/Foo.d:
module test.Foo;
class Foo {
  package static void foo(Object) { }
  public static void foo() { }
}

test/test.d:
module test.test;
import test.Foo;
void fun() { Foo.foo(new Object); }

Expected: a call to foo
Outcome: test/test.d(7): Error: function test.Foo.Foo.foo() is not callable
using argument types (Object)

Bisect points at the PR.

--
June 06, 2018
https://issues.dlang.org/show_bug.cgi?id=12511

--- Comment #6 from FeepingCreature <default_357-line@yahoo.de> ---
Filed as https://issues.dlang.org/show_bug.cgi?id=18951

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--