http://d.puremagic.com/issues/show_bug.cgi?id=3254


Stewart Gordon <s...@iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |s...@iname.com
             Blocks|                            |340




--- Comment #1 from Stewart Gordon <s...@iname.com>  2009-08-17 16:19:16 PDT ---
(DMD 1.046 Windows)

If b.d is changed to
----------
private void foo(int x) {}
void foo(float x) {}
----------
then it doesn't compile either way round:
----------
bz3254a.d: Error: module bz3254a bz3254b.foo is private
bz3254a.d(3): Error: function bz3254b.foo is not accessible from bz3254a
----------
The first of these errors disappears if they're swapped over.

But I'm not sure whether this is meant to work or not.  Are function calls
meant to be matched over all overloads, or only those that are accessible?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to