test: cover modern method unknown-field expressions

This commit is contained in:
Hermes Agent
2026-09-15 04:17:33 +00:00
parent 3fb0a2ec45
commit 83465b73f3
6 changed files with 18 additions and 3 deletions
+3
View File
@@ -287,6 +287,9 @@ EXPECTED = {
"tests/typecheck_method_compat_unknown_field_expression_bad.claro": [
"tests/typecheck_method_compat_unknown_field_expression_bad.claro:5: Object Player has no field level. Check the field name or add the field to the class with the right type.",
],
"tests/typecheck_method_unknown_field_expression_bad.claro": [
"tests/typecheck_method_unknown_field_expression_bad.claro:5: Object Player has no field level. Check the field name or add the field to the class with the right type.",
],
"tests/typecheck_method_unknown_field_check_type_bad.claro": [
"tests/typecheck_method_unknown_field_check_type_bad.claro:5: Object Player has no field level. Check the field name or add HAS level NUMBER to the class.",
],