mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
25 lines
323 B
Plaintext
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
|
|
}
|