typecheck: explain missing class field types

This commit is contained in:
Hermes Agent
2026-09-16 17:58:42 +00:00
parent 31d87c7a5d
commit d9c32ca973
7 changed files with 19 additions and 5 deletions
+3
View File
@@ -284,6 +284,9 @@ EXPECTED = {
"tests/typecheck_unknown_field_type_bad.claro": [
"tests/typecheck_unknown_field_type_bad.claro:2: Class Player field score uses an unknown type BANANA. Use a Claro type such as NUMBER, TEXT, YESNO, LIST, or MAP.",
],
"tests/typecheck_missing_field_type_bad.claro": [
"tests/typecheck_missing_field_type_bad.claro:2: Class Player field score is missing a type. Add a type such as NUMBER, TEXT, YESNO, LIST, or MAP after the field name.",
],
"tests/typecheck_object_field_unknown_object_bad.claro": [
"tests/typecheck_object_field_unknown_object_bad.claro:5: Object player is not known yet. Create it with NEW ClassName player before setting player.score.",
],