Files
c3c/test/test_suite/define/test_at_alias.c3
Christoffer Lerno 8b49e6c14d Rename def to alias.
2025-03-13 11:22:27 +01:00

16 lines
225 B
Plaintext

module foo{Type};
import std::io;
macro @hello(Type thing) {
io::printfn("%d", $sizeof(thing));
}
module bar;
import foo @public;
alias @intHello = foo::@hello{int};
fn void main(String[] args) {
@intHello(42);
}