[Issue 19471] Duplicate error messages when trying to use an inaccessible package symbol

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 10 03:36:18 UTC 2018


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

Mike Franklin <slavo5150 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=10378

--- Comment #1 from Mike Franklin <slavo5150 at yahoo.com> ---
The example in the previous comment was supposed to be:

// file c/b.d
module c.b;

public void aPublicFunction() {}

package void aPackageFunction() {}

// file a.d
module a;

public import c.b;

// file main.d
import a;

void main()
{
    aPublicFunction();
    aPackageFunction();   // Typo:  Private instead of Package
}

Anyway, this works fine if compiling with `-transition=import`.  I don't know

--


More information about the Digitalmars-d-bugs mailing list