Files
c3c/test/test_suite/functions/macro_arguments.c3
Christoffer Lerno 2748cf99b3 - Fix issue where a compile time parameter is followed by "...".
- Fix issue with some conversions to untyped list.
- Experimental change: add `+++` `&&&` `|||` as replacement for `$concat`, `$and` and `$or`.
2024-08-04 23:16:25 +02:00

14 lines
542 B
Plaintext

fn void foo1(int #foo) { } // #error: Only regular parameters are allowed for functions.
fn void foo2(int $foo) { } // #error: Only regular parameters are allowed for functions.
fn void foo3(bar) { } // #error: Only typed parameters are allowed for functions
fn void foo4($Type) { } // #error: Only regular parameters are allowed for functions.
fn void foo8(int* &foo) {} // #error: Only regular parameters are allowed for functions.
fn void foo9(int x, int x) {} // #error: Duplicate parameter name 'x'.
macro @foo($a, $b, $c, ...) {}