typecheck: preserve fields after methods

This commit is contained in:
Hermes Agent
2026-09-02 09:56:18 +00:00
parent b8385f675a
commit 3173eafb36
7 changed files with 59 additions and 5 deletions
+3
View File
@@ -68,6 +68,9 @@ EXPECTED = {
"tests/typecheck_object_field_bad.claro": [
"tests/typecheck_object_field_bad.claro:6: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_after_method_bad.claro": [
"tests/typecheck_object_field_after_method_bad.claro:10: Type mismatch for field player.score: expected NUMBER, but this value looks like TEXT.",
],
"tests/typecheck_object_field_text_bad.claro": [
"tests/typecheck_object_field_text_bad.claro:6: Type mismatch for field player.name: expected TEXT, but this value looks like NUMBER.",
],