mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
12 lines
452 B
Plaintext
12 lines
452 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 foo9(int x, int x) {} // #error: Duplicate parameter name 'x'.
|
|
|
|
macro @foo($a, $b, $c, ...) {} |