test: cover duplicate method parameters

This commit is contained in:
Hermes Agent
2026-09-15 23:20:00 +00:00
parent 04e3e567e0
commit aac07309e1
7 changed files with 42 additions and 2 deletions
+6
View File
@@ -13,6 +13,12 @@ EXPECTED = {
"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_method_duplicate_param_bad.claro": [
"tests/typecheck_method_duplicate_param_bad.claro:2: Method Player.greet declares parameter name more than once. Give each parameter a different name.",
],
"tests/typecheck_method_compat_duplicate_param_bad.claro": [
"tests/typecheck_method_compat_duplicate_param_bad.claro:2: Method Player.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.",