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

20 lines
284 B
Plaintext

import std;
alias IList = List{int};
fn IList IList.newAbc(&self)
{
IList l;
l.init(mem, $vasplat); // #error: can only be used inside
return l;
}
fn void main()
{
IList x;
IList a = x.newAbc(123, 123, 123, 123, 123, 123, 123, 134);
a.push(567);
io::printfn("%s", a[0]);
}