mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
* Improve the error message for miscasing types in the last argument of a method --------- Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
6 lines
355 B
Plaintext
6 lines
355 B
Plaintext
fn void foo1(int... x;) {} // #error: Expected ')'
|
|
fn void foo2(... x;) {} // #error: Expected ')'
|
|
fn void foo3(... x;) {} // #error: Expected ')'
|
|
fn void foo4(;) {} // #error: Expected ')'
|
|
fn void foo5(int x;) {} // #error: Expected ')'
|
|
fn void foo6(string[] x) {} // #error: Expected the name of a type here. ('[' in a parameter list must follow a type) |