module A;
public class A {
private static void foo() {}
public static void foo(int) {}
}
module B;
import A;
public class B {
public static void bar() { A.foo(0); }
}
Error: class A.A member foo is not accessible
Comment #1 by razvan.nitu1305 — 2018-01-25T14:16:28Z
Comment #3 by razvan.nitu1305 — 2018-02-22T13:55:13Z
*** Issue 13697 has been marked as a duplicate of this issue. ***
Comment #4 by do.main — 2018-04-03T02:42:58Z
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.
Comment #5 by default_357-line — 2018-06-06T07:09:08Z
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.
Comment #6 by default_357-line — 2018-06-06T09:19:37Z