Files
c3c/test/test_suite/visibility/private_import2.c3
2023-02-15 09:47:51 +01:00

27 lines
307 B
C

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: not visible
test::bar2(); // #error: could not be found
}