test: cover compatibility duplicate parameters

This commit is contained in:
Hermes Agent
2026-09-15 21:16:31 +00:00
parent dfad6387ab
commit 04e3e567e0
6 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ Function square only accepts 1 argument, but this call gives 2. Remove the extra
Function squre is not known yet. Check the function name or add TEACH squre before calling it.
```
If a function repeats a parameter name, `claro typecheck` reports the declaration mistake before the function is called:
If a function repeats a parameter name, `claro typecheck` reports the declaration mistake before the function is called. This applies to both modern `END` functions and compatibility `TAKES` / `LEARNED` functions:
```text
Function greet declares parameter name more than once. Give each parameter a different name.