[Issue 12511] static overloaded function is not accessible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 6 07:09:08 UTC 2018


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

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

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

--- Comment #5 from FeepingCreature <default_357-line at 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.

--


More information about the Digitalmars-d-bugs mailing list