mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
12 lines
386 B
D
12 lines
386 B
D
module protection.subpkg.tests;
|
|
|
|
import crosspkg = protection.basic.mod1;
|
|
|
|
static assert ( is(typeof(crosspkg.publicFoo())));
|
|
static assert (!is(typeof(crosspkg.packageFoo())));
|
|
static assert (!is(typeof(crosspkg.privateFoo())));
|
|
|
|
import samepkg = protection.subpkg.explicit;
|
|
|
|
static assert ( is(typeof(samepkg.commonAncestorFoo())));
|
|
static assert ( is(typeof(samepkg.samePkgFoo())));
|