typecheck: diagnose missing object field values

This commit is contained in:
Hermes Agent
2026-09-22 00:05:52 +00:00
parent d76a2cd6e4
commit b77dd4dacc
6 changed files with 18 additions and 3 deletions
+3
View File
@@ -275,6 +275,9 @@ EXPECTED = {
"tests/typecheck_object_field_short_missing_value_bad.claro": [
"tests/typecheck_object_field_short_missing_value_bad.claro:6: SET player.score needs a value after type NUMBER. Add one expression.",
],
"tests/typecheck_object_field_missing_value_bad.claro": [
"tests/typecheck_object_field_missing_value_bad.claro:6: SET player.score needs a value. Add one expression after the field name.",
],
"tests/typecheck_object_field_typed_unknown_type_bad.claro": [
"tests/typecheck_object_field_typed_unknown_type_bad.claro:6: Field player.score needs a known type such as NUMBER, TEXT, or YESNO, but BANANA is not a Claro type. Use NUMBER for score.",
],