mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
22 lines
292 B
Plaintext
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 {} |