Files
c3c/test/test_suite/macros/macro_resolution.c3
Christoffer Lerno df3e51c17e Implicit imports.
2022-02-16 20:41:54 +01:00

25 lines
332 B
C

module foo;
import bar;
fn void run()
{
@bar::test();
}
fn void run2()
{
@bar::test2();
}
private fn void tester() {}
module bar;
macro test()
{
tester(); // #error: 'tester' could not be found, did you spell it right
}
macro test2()
{
foo::tester(); // #error: 'foo::tester' could not be found, did you spell
}