test: cover chained object field aliases

This commit is contained in:
Hermes Agent
2026-09-06 14:06:26 +00:00
parent 1f5b5387b0
commit 9b93bea7e0
7 changed files with 40 additions and 4 deletions
+4
View File
@@ -143,6 +143,9 @@ EXPECTED = {
"tests/typecheck_object_field_check_type_alias_bad.claro": [
"tests/typecheck_object_field_check_type_alias_bad.claro:8: Type check failed: expected TEXT, but alias.score looks like NUMBER.",
],
"tests/typecheck_object_field_check_type_chained_alias_bad.claro": [
"tests/typecheck_object_field_check_type_chained_alias_bad.claro:8: Type check failed: expected TEXT, but backup.score looks like NUMBER.",
],
"tests/typecheck_object_alias_method_bad.claro": [
"tests/typecheck_object_alias_method_bad.claro:12: Type mismatch for method Player.add: parameter points needs NUMBER, but this argument looks like TEXT.",
],
@@ -162,6 +165,7 @@ EXPECTED_OK = [
"tests/typecheck_object_field_check_type_text_good.claro",
"tests/typecheck_object_field_check_type_text_yesno_good.claro",
"tests/typecheck_object_field_alias_good.claro",
"tests/typecheck_object_field_check_type_chained_alias_good.claro",
"tests/typecheck_nested_container_good.claro",
"tests/37_object_field_types.claro",
]