mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Incorrect parsing of call attributes #2144.
This commit is contained in:
11
test/test_suite/attributes/call_attribute_parse.c3
Normal file
11
test/test_suite/attributes/call_attribute_parse.c3
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user