feat: add multi-parameter function type diagnostics

This commit is contained in:
Hermes Agent
2026-06-09 03:10:29 -06:00
parent 9c5202cd2c
commit bd96963fb8
8 changed files with 62 additions and 4 deletions
+11
View File
@@ -143,6 +143,17 @@ DO square "oops"
Type mismatch for function square: parameter amount needs NUMBER, but this argument looks like TEXT.
```
For functions with more than one checked parameter, Claro reports each mismatched argument with the parameter name:
```claro
TEACH label TAKES name, age
CHECK TYPE name IS TEXT
CHECK TYPE age IS NUMBER
END
CALL label WITH 7, "old"
```
## Project and package workflow
v1.18.26 hardens Claro's project/package workflow.