typecheck: diagnose unknown CALL functions

This commit is contained in:
Hermes Agent
2026-09-02 03:46:53 +00:00
parent b7b923faf5
commit 614fffbb62
7 changed files with 17 additions and 5 deletions
+3
View File
@@ -32,6 +32,9 @@ EXPECTED = {
"tests/typecheck_function_unknown_bad.claro": [
"tests/typecheck_function_unknown_bad.claro:6: Function squre is not known yet. Check the function name or add TEACH squre before calling it.",
],
"tests/typecheck_function_call_unknown_bad.claro": [
"tests/typecheck_function_call_unknown_bad.claro:6: Function squre is not known yet. Check the function name or add TEACH squre before calling it.",
],
"tests/typecheck_method_bad.claro": [
"tests/typecheck_method_bad.claro:11: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
],