gcc/testsuite/gdc.test/compilable/protection/subpkg/tests.d
raw| 1 | module protection.subpkg.tests; |
| 2 | |
| 3 | import crosspkg = protection.basic.mod1; |
| 4 | |
| 5 | static assert ( is(typeof(crosspkg.publicFoo()))); |
| 6 | static assert (!is(typeof(crosspkg.packageFoo()))); |
| 7 | static assert (!is(typeof(crosspkg.privateFoo()))); |
| 8 | |
| 9 | import samepkg = protection.subpkg.explicit; |
| 10 | |
| 11 | static assert ( is(typeof(samepkg.commonAncestorFoo()))); |
| 12 | static assert ( is(typeof(samepkg.samePkgFoo()))); |