mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Improve error message when using keywords as functions/macros/variables #2133.
This commit is contained in:
10
test/test_suite/functions/function_parse_errors.c3
Normal file
10
test/test_suite/functions/function_parse_errors.c3
Normal file
@@ -0,0 +1,10 @@
|
||||
macro continue(var) // #error: This is a reserved
|
||||
{
|
||||
}
|
||||
|
||||
fn int continue(int x) // #error: This is a reserved
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
fn int do_continue(var) {} // #error: 'var' is a keyword
|
||||
Reference in New Issue
Block a user