test: cover chained object field assignments

This commit is contained in:
Hermes Agent
2026-09-06 16:09:10 +00:00
parent 9b93bea7e0
commit 75b2152f23
4 changed files with 27 additions and 1 deletions
+3
View File
@@ -146,6 +146,9 @@ EXPECTED = {
"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_field_chained_alias_bad.claro": [
"tests/typecheck_object_field_chained_alias_bad.claro:8: Type mismatch for field backup.score: expected NUMBER, but this value looks like TEXT.",
],
"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.",
],