Missing error on default values for body with default arguments #2148.

This commit is contained in:
Christoffer Lerno
2025-05-23 18:57:21 +02:00
parent 6c0e94cad9
commit 9d5b31dad5
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import std;
fn void main()
{
@foo(;int x)
{
io::printn(x);
};
}
macro @foo(; @body(int x = 1)) // #error: Body parameters
{
@body(3);
}