mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
25 lines
333 B
C
25 lines
333 B
C
module foo;
|
|
import bar;
|
|
func void run()
|
|
{
|
|
@bar::test();
|
|
}
|
|
|
|
func void run2()
|
|
{
|
|
@bar::test2();
|
|
}
|
|
|
|
func void tester() {}
|
|
|
|
module bar;
|
|
macro test()
|
|
{
|
|
tester(); // #error: 'tester' could not be found, did you spell it right
|
|
}
|
|
|
|
macro test2()
|
|
{
|
|
foo::tester(); // #error: Unknown module 'foo', did you forget to import it?
|
|
}
|