typecheck: diagnose missing unchecked function args

This commit is contained in:
Hermes Agent
2026-09-02 12:00:07 +00:00
parent 3173eafb36
commit 1e3e7fd9fa
8 changed files with 25 additions and 4 deletions
+1
View File
@@ -146,6 +146,7 @@ DO square "oops"
```text
Type mismatch for function square: parameter amount needs NUMBER, but this argument looks like TEXT.
Function square needs argument amount as NUMBER, but this call does not provide it.
Function greet needs 1 argument, but this call gives 0. Add the missing argument.
Function square only accepts 1 argument, but this call gives 2. Remove the extra argument.
Function squre is not known yet. Check the function name or add TEACH squre before calling it.
```