typecheck: reject unknown expected types

This commit is contained in:
Hermes Agent
2026-09-08 17:26:47 +00:00
parent 8c3c898af7
commit c44db0bb16
6 changed files with 15 additions and 2 deletions
+3
View File
@@ -149,6 +149,9 @@ EXPECTED = {
"tests/typecheck_object_field_check_type_unknown_object_bad.claro": [
"tests/typecheck_object_field_check_type_unknown_object_bad.claro:5: Object player is not known yet. Create it with NEW ClassName player before checking player.score.",
],
"tests/typecheck_invalid_expected_type_bad.claro": [
"tests/typecheck_invalid_expected_type_bad.claro:2: CHECK TYPE needs a known type such as NUMBER, TEXT, YESNO, LIST, or MAP, but BANANA is not a Claro type.",
],
"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.",
],