typecheck: diagnose missing field values

This commit is contained in:
Hermes Agent
2026-09-21 11:38:51 +00:00
parent 44937b074f
commit 21cff73185
7 changed files with 27 additions and 2 deletions
+3
View File
@@ -263,6 +263,9 @@ EXPECTED = {
"tests/typecheck_object_field_typed_as_to_extra_tokens_bad.claro": [
"tests/typecheck_object_field_typed_as_to_extra_tokens_bad.claro:6: SET player.score has extra text after value 10. Keep only the field name, type, TO, and one expression.",
],
"tests/typecheck_object_field_typed_as_to_missing_value_bad.claro": [
"tests/typecheck_object_field_typed_as_to_missing_value_bad.claro:6: SET player.score needs a value after type NUMBER and TO. Add one expression.",
],
"tests/typecheck_object_field_short_extra_tokens_bad.claro": [
"tests/typecheck_object_field_short_extra_tokens_bad.claro:6: SET player.score has extra text after value 10. Keep only the field name, type, and one expression.",
],