Files
c3c/test/test_suite/visibility/no_shared_imports.c3t
Christoffer Lerno 8c23c5028d Make @public import recursive. #2018
`import` can now both be @public and @norecurse.
2025-03-10 15:33:29 +01:00

22 lines
292 B
Plaintext

// #file: file1.c3
module baz;
fn void runBar()
{
visible();
bar::barFunc(); // #error: and not visible from other
}
// #file: file2.c3
module baz;
import bar @public;
fn void visible() @private
{
bar::barFunc();
}
// #file: file3.c3
module bar;
fn void barFunc() @private {}