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

25 lines
323 B
Plaintext

module foo;
import bar;
fn void run()
{
bar::test();
}
fn void run2()
{
bar::test2();
}
fn void tester() @private {}
module bar;
macro test()
{
tester(); // #error: function 'tester' is '@private' and not visible
}
macro test2()
{
foo::tester(); // #error: 'foo::tester' is '@private' and not visible
}