typecheck: diagnose missing TYPE OF expressions

This commit is contained in:
Hermes Agent
2026-09-19 18:14:52 +00:00
parent deb09cff8b
commit 9beb0e167e
7 changed files with 27 additions and 1 deletions
@@ -89,6 +89,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED,
)
def test_includes_missing_type_of_expression_fixture(self):
self.assertIn(
"tests/typecheck_missing_type_of_expression_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