typecheck: clarify extra return tokens
This commit is contained in:
@@ -108,6 +108,12 @@ class ValidateTypecheckDiagnosticsTests(unittest.TestCase):
|
||||
def test_includes_empty_function_return_fixture(self):
|
||||
self.assertIn("tests/typecheck_function_empty_return_bad.claro", MODULE.EXPECTED)
|
||||
|
||||
def test_includes_extra_return_tokens_fixture(self):
|
||||
self.assertIn(
|
||||
"tests/typecheck_function_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 amount RETURNS NUMBER
|
||||
RETURN amount extra
|
||||
END
|
||||
Reference in New Issue
Block a user