Improve error message when using keywords as functions/macros/variables #2133.

This commit is contained in:
Christoffer Lerno
2025-05-15 15:27:14 +02:00
parent 6c822e5aa3
commit 93dd432b62
5 changed files with 31 additions and 1 deletions

View 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