Incorrect parsing of call attributes #2144.

This commit is contained in:
Christoffer Lerno
2025-05-17 22:10:03 +02:00
parent 23897bc9a4
commit 082457c5fb
3 changed files with 28 additions and 10 deletions

View File

@@ -0,0 +1,11 @@
module test;
fn VoidFn foo()
{
return fn void() {};
}
fn void main()
{
foo() @inline ();
foo() @inline (foo()); // #error: This argument would exceed the number of parameters
}