mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Error when using named argument on trailing macro body expansion #2139.
This commit is contained in:
9
test/test_suite/macros/trailing_body_named.c3
Normal file
9
test/test_suite/macros/trailing_body_named.c3
Normal file
@@ -0,0 +1,9 @@
|
||||
macro @foo(; @body(int arg))
|
||||
{
|
||||
@body(arg: 0); // #error: Named arguments are not supported for body parameters
|
||||
}
|
||||
|
||||
fn void main()
|
||||
{
|
||||
@foo(; int arg) {};
|
||||
}
|
||||
Reference in New Issue
Block a user