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

17 lines
312 B
C

module foo<Type>;
import std::io;
macro @hello(Type thing) {
io::printfn("%d", $sizeof(thing));
}
module bar;
import foo @public;
define intHello = foo::@hello<int>; // #error: cannot be aliased
define @intHello = foo::hello<int>; // #error: cannot use
fn void main(String[] args) {
@intHello(42);
}