mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix regression for splat.
This commit is contained in:
12
test/test_suite/functions/splat_post_order.c3t
Normal file
12
test/test_suite/functions/splat_post_order.c3t
Normal file
@@ -0,0 +1,12 @@
|
||||
macro @foo(..., bool a = true, bool b = false)
|
||||
{
|
||||
return @foo2((void*)null, $vasplat, a: a, b: b);
|
||||
}
|
||||
|
||||
macro @foo2(x, ..., bool a = true, bool b = false)
|
||||
{ }
|
||||
|
||||
fn void main()
|
||||
{
|
||||
@foo(1, 2, 3, 4, a: true, b: false);
|
||||
}
|
||||
Reference in New Issue
Block a user