mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
27 lines
309 B
Plaintext
27 lines
309 B
Plaintext
module test;
|
|
|
|
fn void bar() @private
|
|
{
|
|
}
|
|
fn void bar2() @local
|
|
{
|
|
}
|
|
|
|
module baz;
|
|
import test @public;
|
|
|
|
fn void abc()
|
|
{
|
|
test::bar();
|
|
test::bar2(); // #error: could not be found
|
|
}
|
|
|
|
module baz2;
|
|
|
|
import test;
|
|
|
|
fn void abc()
|
|
{
|
|
test::bar(); // #error: is '@private'
|
|
test::bar2(); // #error: could not be found
|
|
} |