test: cover compatibility function return tokens

This commit is contained in:
Hermes Agent
2026-09-18 21:37:24 +00:00
parent ea15117a1f
commit ede2e333fb
7 changed files with 17 additions and 3 deletions
@@ -114,6 +114,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
MODULE.EXPECTED,
)
def test_includes_compatibility_function_extra_return_tokens_fixture(self):
self.assertIn(
"tests/typecheck_function_compat_return_extra_tokens_bad.claro",
MODULE.EXPECTED,
)
def test_includes_empty_compatibility_method_return_fixture(self):
self.assertIn(
"tests/typecheck_method_compat_empty_return_bad.claro",
@@ -0,0 +1,3 @@
TEACH square TAKES amount RETURNS NUMBER
RETURN amount extra
LEARNED