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
+3
View File
@@ -10,6 +10,9 @@ EXPECTED = {
"tests/typecheck_function_duplicate_param_bad.claro": [
"tests/typecheck_function_duplicate_param_bad.claro:1: Function greet declares parameter name more than once. Give each parameter a different name.",
],
"tests/typecheck_function_compat_duplicate_param_bad.claro": [
"tests/typecheck_function_compat_duplicate_param_bad.claro:1: Function greet declares parameter name more than once. Give each parameter a different name.",
],
"tests/typecheck_bad.claro": [
"tests/typecheck_bad.claro:2: Type mismatch for score: it was first set as NUMBER, but this value looks like TEXT.",
"tests/typecheck_bad.claro:3: Type mismatch for name: expected TEXT, but this value looks like NUMBER.",