typecheck: prioritize missing TYPE OF expressions

This commit is contained in:
Hermes Agent
2026-09-20 02:30:55 +00:00
parent bcaadf0423
commit 1a2de275d1
6 changed files with 13 additions and 1 deletions
@@ -95,6 +95,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED,
)
def test_includes_missing_type_of_expression_before_extra_tokens_fixture(self):
self.assertIn(
"tests/typecheck_missing_type_of_expression_extra_tokens_bad.claro",
MODULE.EXPECTED,
)
def test_includes_lowercase_compatibility_return_success_fixture(self):
self.assertIn(
"tests/typecheck_function_lowercase_return_good.claro",
@@ -0,0 +1 @@
TYPE OF AS kind extra