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
+5
View File
@@ -19,10 +19,15 @@ EXPECTED = {
"tests/typecheck_function_bad.claro": [
"tests/typecheck_function_bad.claro:5: Type mismatch for function square: parameter amount needs NUMBER, but this argument looks like TEXT.",
],
"tests/typecheck_function_multi_bad.claro": [
"tests/typecheck_function_multi_bad.claro:8: Type mismatch for function label: parameter name needs TEXT, but this argument looks like NUMBER.",
"tests/typecheck_function_multi_bad.claro:8: Type mismatch for function label: parameter age needs NUMBER, but this argument looks like TEXT.",
],
}
EXPECTED_OK = [
"tests/typecheck_function_good.claro",
"tests/typecheck_function_multi_good.claro",
]
STALE_PHRASES = [